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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can we get a response from PayPal? This is clearly not one-off. That said, I've tested my code on production and it works as expected. It's just an issue with sandbox.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am getting the issue with both production and sandbox mode. Please guide how to fix this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am getting the same issue.
For me this is when using sandbox for testing purposes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- « 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