Every payment returning to cancel URL and PAYMENT_ALREADY_DONE (sandbox)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm uploading a cart of one or more items for payment. After paying, the user sees "Your payment was completed. To continue shopping, please return to the merchant" with the "Return to Merchant" button. Upon clicking, the user is taken to the cancel_return URL rather than the return URL. This worked last year (it's a site for an annual event). This is in Sandbox. I'm afraid to try it in production while this is happening.
Form payload:
cmd: _cart
upload: 1
no_shipping: 1
currency_code: USD
business: [business email]
item_name_1: Item Name
item_number_1: 3ac53ba1-7fe6-43e6-b06a-407566896faa
amount_1: 50
shopping_url: https://site.com/checkout?source=paypal
return: https://site.com/checkout?source=paypal&a=paid
cancel_return: https://site.com/checkout?source=paypal&a=cancel
Response:
After successfully clicking the payment button, the user is directed to the completion page
I noticed that the actual URL at the moment reflects an error:
https://www.sandbox.paypal.com/webapps/hermes?token={TOKEN}&useraction=commit&rm=2&mfid={IDENTIFIER}.../checkout/genericError?code=PAYMENT_ALREADY_DONE
Upon clicking the button, they are taken to my "cancel_return" URL. If I look at the business transactions, it reflects a successful payment, and my IPN endpoint correctly receives and records the payment details. What's happening here?
- Labels:
-
Carts
-
IPN
-
Reference Transactions
-
SDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am also getting the same issue.
Using sandbox for testing purposes.
I'm in the UK, is this country specific?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm in the US, so doesn't appear to be region-specific.
Can anyone at PayPal actually respond?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Has PayPal resolved this error yet please?
Has anyone had any success in getting this working again?
Many thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey.
Something has been changed as it now works for me in the Sandbox Environment.
Someone from PayPal must have been looking at this and made some changes.
My code is the same and now it works!!!
I suggest trying it now and see if it works for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@thief2 Hey thanks for the reply.
Can confirm that all is well.
All working as before - thanks PayPal.
With kind regards to all HTA-UK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It works here aswell (Website in France working with Woocommerce).
I did not change anything, I assume someone at Paypal fixed it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am seeing this problem in my staging environment since a few days.
Translates to: "Your payment was successful. Return to the merchant to complete the purchase"... but the button leads to my cancel endpoint instead of the success endpoint.

- « Previous page
-
- 1
- 2
- Next page »
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Webhooks from PayPal Sandbox are not sending any JSON data, just headers in Sandbox Environment
- GET /customer/partners/:partner_id/merchant-integrations/:seller_id returning 404 in Sandbox. Help! in Sandbox Environment
- Error creating an order for cupture - Issues with Authorization header in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)
- List all balances API call in sandbox is returning 404 in REST APIs
- Enable billing address return for a sandbox account in Sandbox Environment