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.
- Issue with Empty store_info in Response Using /v1/reporting/transactions on Sandbox API in REST APIs
- SandBox Return URL in Sandbox Environment
- Trying to connect sandbox credentials in Magento 2.0 returns "Something went wrong." in Sandbox Environment
- Enable billing address return for a sandbox account in Sandbox Environment
- Enable billing address return for a sandbox account in Sandbox Environment