I am using Magento 2.3.1 multiple website store and I am using PayPal express checkout in my payment method. I have to use the sandbox credentials for a PayPal business account. I place one order and in checkout, I select PayPal express method but after it goes to the redirect page, I am getting an error.
The Paypal gateway rejected the request. Payment has already been made for this InvoiceID (# 10412: Duplicate invoice).
I tried to find out solutions for this but I am not getting anywehere. If anyone has any ideas let me know.