Create Recurring Payment profile failed - php

Hi All I am implementing recurring payments with paypal. My paypal script is already running now embedding recurring payments in it. I have searched a lot and not find any useful material. I found from Recurring some material. I implemnted the code of createrecurringpayments.php from here and changed the variables accorinding to mine. I redirect browser to this file from DoExpressCheckoutPayment.php when transaction is completed. But at createrecurringpayment.php I always get the following error.CreateRecurringPaymentsProfile failed: Array ( [TIMESTAMP] => 2011%2d03%2d28T11%3a44%3a30Z [CORRELATIONID] => 81d0c488123c4 [ACK] => Failure [VERSION] => 54%2e0 [BUILD] => 1776465 [L_ERRORCODE0] => 10002 [L_SHORTMESSAGE0] => Security%20error [L_LONGMESSAGE0] => Security%20header%20is%20not%20valid [L_SEVERITYCODE0] => Error ).

there may be below 4 causes for this type of error you found..
1. You have your PayPal module configured to "Sandbox" but have not used Sandbox API credentials.
2. You have your PayPal module configured to "Live" but have not used Live API credentials.
3. You have mis-typed one or more API credentials entries, including but not limited to leaving trailing spaces.
4. You have deleted and/or recreated new API credentials in your PayPal account but have not copied those new credentials back to your store.
Just check it out..it may helpful to you..
Thanks.

I have found the solution.... I was using paypal Express Checkout.. With this it is not possible to implement recurring payments...

Related

Security header is not valid - Error in paypal - WHMCS

I'm using custom Paypal billing agreement payment gateway in my WHMCS site. It was working fine for 1 year. I met some issues with generating transaction ID for in some scenarios. In order to check and fix the issue changed paypal environment to sandbox mode by providing the Sandbox API username, Password and Signature. But on calling 'SetExpressCheckout' I'm getting the following error.
[ACK] => Failure
[VERSION] => 119.0
[BUILD] => 40680762
[L_ERRORCODE0] => 10002
[L_SHORTMESSAGE0] => Security error
[L_LONGMESSAGE0] => Security header is not valid
[L_SEVERITYCODE0] => Error
[ERRORS] => Array(
[0] => Array(
[L_ERRORCODE] => 10002
[L_SHORTMESSAGE] => Security error
[L_LONGMESSAGE] => Security header is not valid
[L_SEVERITYCODE] => Error
)
)
I tried it with different paypal sandbox accounts. But the result was same. When I'm using Live account with Live credentials the error will disappear and the token (REDIRECTURL) will generate. If I'm using sandbox with sandbox credentials the error is displaying.
What's the reason for this? I checked for trailing spaces, unwanted characters in the credentials I provided. Everything seems to be fine. Do I need to provide any settings in Paypal Account? How I can fix this issue?
This error means one of two things. Either one of the values you've entered for the credentials is simply incorrect, or you're sending sandbox credentials to the live server or vice-versa. Need to double check the endpoint that is being used for the API request to PayPal. It sounds like maybe you're updating the credentials to use sandbox, but the endpoint is still hitting the live server.

PayPal Pro setup Error 10548

while paypal test checkout. I got an error mentioned below.
[TIMESTAMP] => 2017-09-22T09:01:00Z
[CORRELATIONID] => 8d454e5592202
[ACK] => Failure
[VERSION] => 65.1
[BUILD] => 36082234
[L_ERRORCODE0] => 10548
[L_SHORTMESSAGE0] => Invalid Configuration
[L_LONGMESSAGE0] => This transaction cannot be processed. The merchant's account is not able to process transactions.
[L_SEVERITYCODE0] => Error
[AMT] => 10.00
[CURRENCYCODE] => USD
I has checked for all stack answers and youtube tutorials.
I has created sandbox business account for us country, added balance, upgraded to pro, on modal in settings tab: PayPal Credit- on, login with pal - all these steps are done. copy the credential under api tab and pasted them to code you provide.
But while make payments. I got the above mentioned errors. Any help will be appreciated. Thanks!
Your account where it calls the API should be upgrade to PRO before you make the DoDirectPayment API.
This error usually occurs if you don't have a business account. You must have a business PayPal account within a PayPal Payments Pro-enabled country to use the Direct Payment API. The absence of a home or customer service phone number on your PayPal account can also trigger this error.
Solution
If you have a business account and you get this error, check your PayPal account profile and make sure it includes a home phone number or a customer service phone number. Update your profile if necessary.
https://www.paypal-knowledge.com/infocenter/index?page=content&id=FAQ1147&actp=LIST

PayPal pro error

I have created buyer and seller account from PayPal developer site.
Account type: Buisness-pro
And fill all right api detail's but this error is coming:-
Array
(
[TIMESTAMP] => 2016-12-15T12:43:12Z
[CORRELATIONID] => a9537857c6865
[ACK] => Failure
[VERSION] => 65.1
[BUILD] => 24616352
[L_ERRORCODE0] => 10501
[L_SHORTMESSAGE0] => Invalid Configuration
[L_LONGMESSAGE0] => This transaction cannot be processed due to an invalid merchant configuration
.
[L_SEVERITYCODE0] => Error
[AMT] => 10.00
[CURRENCYCODE] => USD
)
{"status":0}
Business-Pro can actually mean one of two things.
Website Payments Pro 3.0 - This is what uses the DoDirectPayment API
Payments Pro 2.0 - This uses the PayFlow API
In your case it looks like you're approved for "Pro" so you're trying to use the DoDirectPayment API, but the error you're getting means that particular API is still not enabled on your account.
This could mean that you simply cannot use DDP on your account, or it could mean PayPal simply didn't activate it for you since PayFlow would be the assumed gateway. Technically, 2.0 should support both of those APIs.
If you call PayPal and let them know you already have DDP fully integrated and ready to go based on the fact that you had "Pro" enabled, and you would rather not re-develop everything in PayFlow due to time / cost restrictions, they will probably go ahead and enable DDP for you so that this error will go away.
Or, you could go ahead and use the PayFlow API instead. It looks like you might possibly be using my PayPal PHP SDK..?? If so, you could get PayFlow setup instead of DDP within a matter of minutes. If not, I recommend you take a look at it for future reference. It supports pretty much every PayPal API they offer and greatly simplifies things.
If you're interested in more details on this you can check out my article on The History of PayPal Payments Pro.

PayPal Adaptive Payments - User is not allowed to perform this action

I am using paypal adaptive payments and i had sandbox account for this to be test for last 2 months it was working very much fine and all the transactions were successfully made by using sandbox.
Now what i'm trying to do is want to go live with adaptive payments get all the necessary information api id,password,signature, ap id etc. the problem is i'm facing right now is getting this error
Array
(
[responseEnvelope.timestamp] => 2014-12-08T21:53:30.943-08:00
[responseEnvelope.ack] => Failure
[responseEnvelope.correlationId] => f8bdc47c42067
[responseEnvelope.build] => 13414382
[error(0).errorId] => 550001
[error(0).domain] => PLATFORM
[error(0).subdomain] => Application
[error(0).severity] => Error
[error(0).category] => Application
[error(0).message] => User is not allowed to perform this action
[error(0).parameter(0)] => Chained Payment
)
and i dont know where is the problem can you please help me out
The error is because you Adaptive Payment application is not approved for Chain Payments and you are trying to execute Chain Payments API.
Go to apps.paypal.com and check(I can see that you are not enabled for chain Payments). In order to resolve the error, create a new application at apps.paypal.com and check "Chain Payments" and then use the new APP-ID to initiate this API call. It is also possible when your business/premier account is not Verified
P.S Btw, it is not possible to update the current application as it is already approved.So create new one.

Paypal UpdateRecurringPaymentsProfile returning internal error

I am trying to update a paypal recurrent payment profile with NVP. I want to change the payment amount. The request I am sending to is:
METHOD=UpdateRecurringPaymentsProfile&VERSION=86&PWD=1404892100&USER=XXX#YYY.com&SIGNATURE=ASEEEEEEECCCCCCCC&ProfileID=I-8N1W7089GB47&Note=testing&Amount=105
This request is failing with the following message
[TIMESTAMP] => 2014%2d11%2d04T19%3a13%3a05Z
[CORRELATIONID] => 5c6026b1dedec
[ACK] => Failure
[L_ERRORCODE0] => 10001
[L_SHORTMESSAGE0] => Internal Error
[L_LONGMESSAGE0] => Timeout processing request
The profile was created using express checkout and CreateRecurringPaymentsProfile api as instructed at https://developer.paypal.com/docs/classic/express-checkout/ht_ec-recurringPaymentProfile-curl-etc/
I have surfed the internet a lot but no solution is found. Can anyone help me with this.
Thanks
Monjur
In your update request you've got the parameter name as AMOUNT instead of AMT. Try adjusting that to see if you get a better response.

Categories