PayPal - duplicate invoice problem on a staging website

  • Posts: 19
  • Thank you received: 3
6 months 2 weeks ago #355905

-- url of the page with the problem -- : www.winescholarguild.com
-- HikaShop version -- : 4.7.5
-- Joomla version -- : 4.3.4
-- PHP version -- : 8.0.27
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : Error 10536: The transaction was refused as a result of a duplicate invoice ID supplied. Attempt with a new invoice ID

Hi,

we are testing the payments on a staging website and are getting this error from PayPal:

Error 10536: The transaction was refused as a result of a duplicate invoice ID supplied. Attempt with a new invoice ID

I suspect it's because the staging site contains an older copy of production data and attempts to create an invoice that has been previously sent to PayPal from our production instance.

Can you suggest a workaround so we can test the payment flow?

Thanks,
Peter

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81568
  • Thank you received: 13078
  • MODERATOR
6 months 2 weeks ago #355906

Hi,

Indeed. You have two options:
1. Navigate to www.paypal.com/businessmanage/preferences/payments
Log in with your PayPal account credentials if prompted
Under 'Block accidental payments' select 'No, allow multiple payments per invoice ID'
That way, PayPal will accept payments with the same invoice ID

2. Create a sandbox account and connect your PayPal Checkout payment method to the sandbox account on your staging website. That way, you can pay with fake mony on your staging account and be independent from your live PayPal account on your live website.

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 3
6 months 2 weeks ago #355923

Ok thank you!

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum