I am using PHP Payflow library for payment. Its working fine with the default settings of user name, password and vendor, but when I put my vendor along with an user created at my manager site, I keep getting api error for sale method as:
RESULT 52
PNREF B70P6E0297BE
RESPMSG Insufficient permissions to perform transaction
pnref differs though. When I checked for daily transactions at manager site, all the transaction are listed there with result code as 52.
I tried to create profile of payer for recurring billing, but that too results with code 36 and txnresult code 5 and api error looks like
RESULT 36
RPREF R1056FBB4803
RESPMSG Transaction failed: Fail to obtain approval for the online transaction
TRXRESULT 5
TRXPNREF B70P6E02CD90
TRXRESPMSG Invalid merchant information: 10002-You do not have permissions to make this API call
HOSTCODE 10002
TRANSTIME 2014-09-01 04:12:28
FIRSTNAME John
LASTNAME Doe
AMT 3.00
ACCT 1111
EXPDATE 1215
CARDTYPE 0
This transaction also listed in daily transactions.
The user I am using for transaction has give API_FULL_TRANSACTION
permission. I tried to change it to FULL_TRANSACTION
but the result is same. I also tried the transaction with ADMIN
permissions, but it also results with code 52.
What kind of permission do we need to set for user to perform the transaction?
For the result code = 52 , it seems that you have PayPal advanced account but you are trying to process the Payments directly on your website using the API's that is not allowed because with PayPal advanced you have to use PayPal Hosted checkout Pages . To get rid of this error you must have pro account or use the hosted checkout Pages .
And one more thing if you are in test mode , make sure to put the sandbox account email address in your manager account under Service settings --> Set Up --> PayPal sandbox email address . And this sandbox account should be a Pro account . You can create a sandbox account by logging to developer.paypal.com with your PayPal credentials --> Applications--> Sandbox accounts .
For the recurring billing error , can you post the parameters submitted to the PayPal ?