raji19
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Aug-29-2022
12:54 PM
Hello when I try to make a purchase and validate it, I get success response, but when I create a recurring profile after that, I get an error 'A successful Billing Agreement has already been created for this token.', It was working fine all these days.
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_URL, $API_Endpoint);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query(array(
'USER' => $userName,
'PWD' => $password,
'SIGNATURE' => $signature,
'METHOD' => 'GetExpressCheckoutDetails',
'VERSION' => '108',
'TOKEN' => $token
)));
$response = curl_exec($curl);
curl_close($curl);
->Gives me a successful response
->Gives me a successful response
But fails for this,
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_URL, $API_Endpoint);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query(array(
'USER' => $userName,
'PWD' => $password,
'SIGNATURE' => $signature,
'METHOD' => 'CreateRecurringPaymentsProfile',
'VERSION' => '108',
'TOKEN' => $token,
'PayerID' => $payerID,
'PROFILESTARTDATE' => $profileStartDate, // '2012-10-08T16:00:00Z', H:i:s
'DESC' => $paymentDescription,
'BILLINGPERIOD' => "Day",
'BILLINGFREQUENCY' => $billingFrequency,
'AMT' => $amount,
'CURRENCYCODE' => $currencyID,
'MAXFAILEDPAYMENTS' => PAYPAL_MAXFAILEDPAYMENTS,
'PROFILEREFERENCE' => $invoiceNumber
)));
$response = curl_exec($curl
curl_close($curl);
Parameters
Token : EC-2VC91738GR040514V
payerID : FZMCPGH4BCEV2
profileStartDate : 2022-08-29T13:16:21Z
paymentDescription : MoCA Montreal - Cognitive Assessment
billingFrequency : 1
amount : 50.00
CURRENCYCODE : USD
invoiceNumber : 152737_232095_98_5266
PAYPAL_MAXFAILEDPAYMENTS : 4
profileStartDate : 2022-08-29T13:16:21Z
paymentDescription : MoCA Montreal - Cognitive Assessment
billingFrequency : 1
amount : 50.00
CURRENCYCODE : USD
invoiceNumber : 152737_232095_98_5266
PAYPAL_MAXFAILEDPAYMENTS : 4
-> with the following repsonse
recurringPaymentConfirmation : Array
(
[TIMESTAMP] => 2022-08-29T13:16:21Z
[CORRELATIONID] =>
(
[TIMESTAMP] => 2022-08-29T13:16:21Z
[CORRELATIONID] =>
[ACK] => Failure
[VERSION] => 108
[BUILD] => 56068150
[L_ERRORCODE0] => 11456
[L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_LONGMESSAGE0] => A successful Billing Agreement has already been created for this token.
[L_SEVERITYCODE0] => Error
)
Thanks in advance.
[VERSION] => 108
[BUILD] => 56068150
[L_ERRORCODE0] => 11456
[L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_LONGMESSAGE0] => A successful Billing Agreement has already been created for this token.
[L_SEVERITYCODE0] => Error
)
Thanks in advance.
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Accepted Solutions
raji19
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug-31-2022
04:28 AM
4 REPLIES 4
votek
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug-30-2022
02:29 AM
I'm experiencing the same issue with recurring profile creation that started on 25th
DevFGB
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug-30-2022
06:54 AM
Same around here, error started appearing recently on sandbox calls to create recurring profiles through Paypal Express Checkout
raji19
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug-31-2022
04:28 AM
DevFGB
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug-31-2022
06:21 AM
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Recurring payments with frequency as few minutes in Sandbox Environment
- How do I stop initial recurring payment charged twice in Opencart? in REST APIs
- Customer Cancelled Subscription that had Outstanding Amounts - Now Wants to Resubscribe in NVP/SOAP APIs
- sandbox IPN - Delivery status "failed" in Sandbox Environment