I'm using Paypal Sandbox Account. I'm facing below issue

[2017-03-15 03:32:20] main.CRITICAL: Exception message: PayPal gateway has rejected request. Payment has already been made for this InvoiceID (#10412: Duplicate invoice).
Trace: #0 D:\wamp\www\magento\vendor\magento\framework\ObjectManager\Factory\Dynamic\Developer.php(89): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array)
#1 D:\wamp\www\magento\vendor\magento\framework\ObjectManager\ObjectManager.php(57): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...', Array)
#2 D:\wamp\www\magento\var\generation\Magento\Framework\Exception\LocalizedExceptionFactory.php(43): Magento\Framework\ObjectManager\ObjectManager->create('\\Magento\\Framew...', Array)

1 Answer 1


By default Paypal does not allow you to put through the same invoice number twice. This can happen when you use the same credentials across multiple different Magento sites (even across a local environment and your staging environment)

You can change this behaviour in Paypal under Your Profile > Selling Tools > Block payments and then change the setting for Block accidental Payments to
"No, allow multiple payments per invoice ID"

block accidental payments

For me the direct link to the relevant settings is https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-pref


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.