Paypal Adaptive Payment 540031 Error - php

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?

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

Related

How to correctly integrate PayPal's API with paypal payments pro?

I just finished building a donation form on a client's website, which processes payments through PayPal's classic api. It works fine in Sandbox mode, but I'm getting a 10501 - This transaction cannot be processed due to an invalid merchant configuration. error.
I know that this error is caused by PayPal payments pro not being enabled on the account the API is trying to access. That is were I'm somewhat confused. The account I'm connecting this donation form to is subscribed to Paypal Payments Pro.
When I first encountered the 10501 error, I thought that PayPal may require myself to log in and enable the Payments Pro service. I found a "get started" button under the payments pro section of the site, but when I click it, I'm taken to a page which only provides a link to the API documentation.
I've never worked with PayPal's API before or launched a live paypal application. I'm hoping someone can point me in the right direction.
NOTES
Just to make it clear, the PHP donation form DOES work in PayPal's sandbox mode
I have acquired the correct API keys from the live account and I know for a fact that I did not mix up the live credentials with the sandbox.
this donation form is on a website, not an mobile app (do I still need to register it as a paypal app?)
Thanks
A lot of times what happens is that PayPal enables the Virtual Terminal for you, but not the DoDirectPayment API. I would just give them a call and let them know you have Pro, but your DDP calls are resulting in this error, and they can probably get it enabled for you.
It's also possible that your version of Pro requires you to use the PayFlow API instead of DoDirectPayment. That's something they can tell you when you call them.

PayPal upgrade from Sandbox to Production, not found error

My application was working fine with paypal sanbox account but when I put my production API credentials and make application to accept real payments it is giving me:
"This webpage is not available" error on this url:
"https://www.live.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-95X1447957597540A".
I am making express checkout and credit card payments using paypal.
And I have my personal paypal account and developer account. And I am currently testing with my personal account API credentials for production purpose.
Does it require to create a new Classic App to go live?
And if yes than can I and my client both create same app?
Thanks.
You don't use live.paypal.com. The live server is just www.paypal.com.

which API to use the paypal adaptive module?

I purchased a PayPal Adaptive module, to make it work I have to enter the LIVE APP ID that was given to me when I activated the application on the PayPal site?
Or should I use the API that I create through my paypal account?
For Adaptive you need your API credentials and your App ID.
I know this question is old, but in case it comes in handy for anyone in the future, you'll need to login to your developers account and click classic APIs

Disable sandbox mode for Paypal Express

I'm using Omnipay with CodeIgniter to allow customers to checkout on Paypal.
I was using test mode during the development on the website, but now the site is done and ready to be put in production.
But I don't know how to setup Omnipay to use live payments and not Sandbox mode.
I tried setting the testMode to false. -> Security header invalid.
I tried creating REST Api credentials -> You can't make this api call.
I know that's probably not the right way to do this, but at least I explored options.
So please, what's the most suitable configuration to do live Payments on PaypalExpress with Omnipay ?
Thanks in advance.
You need to set testMode to false, or just leave it out entirely (false is the default).
Security header invalid
This means that you are trying to use test credentials with the production environment (which it sounds like you were).
You don't want to create REST credentials, you need to create API credentials for the standard PayPal NVP API.
PayPal Express requires an API Username, Password, and Signature. These are different from your PayPal account details. You can obtain your API details by logging in to your (live) PayPal account, and clicking Profile > My Selling Tools > API Access > Request/View API Credentials > Request API Signature.
depending on what type of payments are you using you need to say paypal to activate your account for this types of transactions (this is not necessary in sandbox.
Anyway, is these error returned by omnipay or by paypal api? Copy and paste de full error here for more help.
There are a lot of differences between sandbox and real mode, sandbox usually say ok to any transaction. We had a lot of problems integrating paypal api because of bad practices in sandbox.
In order to try your code in the PayPal sandbox test environment, use the following credentials :
API username : sdk-three_api1.sdk.com
API password : QFZCWN5HZM8VBG7Q
API signature : A‑IzJhZZjhg29XQ2qnhapuwxIDzyAZQ92FRP5dqBzVesOkzbdUONzmOU
P.S: Don't forget to set testMode to true
source : PayPal NVP API Overview

how to test clicknbuy?

I want to test clicknbuy payment gateway like paypal sandbox? Is that possible ? If yes, how ?
You can test Paypal by using different settings for the script. Instead of using the "real" api you create a developer account. That allows you to have a fake account and fake usernames to simulate payments. When you're done with everything you can switch to using the normal api instead of the test server.
Base site: https://developer.paypal.com/
More information at https://www.x.com/community/ppx/testing
Click on "Testing Web Checkout APIs"
Testing Web Checkout APIs PayPal Web
Checkout APIs includes Express
Checkout, Website Payments Pro, Button
Manager, Mass Pay, Recurring Payments,
and all of the Information APIs
Login or sign-up on
developer.paypal.com Create your test
accounts - you can learn more about
this in the Getting Starting Guide.
Get you API Credentials for your
Business Test Account Code and Test
Read the Documents Get Sample Code
Download SDKs
Use the correct endpoint
Go live :)

Categories