Levi Almanzar
Levi Almanzar

Reputation: 21

Paypal Adaptive Payment 540031 Error

I am using the Mobile SDK to integrate paypal payments into my iOS app. I'm trying to verify an adaptive payment but keep getting

540031 Error : You do not have permission to get these payment details

whenever I try to use https://svcs.sandbox.paypal.com/AdaptivePayments/PaymentDetails. I am using my sandbox business credentials. What do I have to do to get permission?

Upvotes: 2

Views: 373

Answers (1)

e3g
e3g

Reputation: 13

Don't forget to replace

window.plugins.PayPalMobile.setEnvironment("PayPalEnvironmentNoNetwork");

by

window.plugins.PayPalMobile.setEnvironment("PayPalEnvironmentSandbox"); 

for Sandbox or

window.plugins.PayPalMobile.setEnvironment("PayPalEnvironmentProduction"); 

for Live

in your Javascript code, the one that you modified from the sample here

;) enjoy your tests

Upvotes: 1

Related Questions