I'm trying to implement simple payment flow: User creates order with internal number ABC-1234 I pass details of that order to v2/checkout/orders with invoice_id equal to my internal order number, eg: ABC-1234 with intent CAPTURE User goes to approve link found in v2/checkout/orders response After user approved order and webhook CHECKOUT.ORDER.APPROVED is received I'm trying to capture order via /v2/checkout/orders/%order_id%/capture But I get DUPLICATE_INVOICE_ID error when I try to do so. I did not create any more orders or modified this one. When I misunderstood order api flow or what am I doing wrong? Actually nothing, in sandbox environment you cannot have more then one unfinished (non completed or voided) order with the same InvoiceId. After creating a new sample order everything working fine.
... View more