[Resolved] Order number & invoice id
Kuzia
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Dec-27-2019
03:18 AM
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.
Labels:
- Labels:
-
Invoicing REST APIs
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Shopify invoice numbers on Paypal transactions in Sandbox Environment
- Inquiring the transaction on Pay-flow gateway using Invoice Number in REST APIs
- how to generate access token from paypal rest sdk v1? in REST APIs
- Problems with character limits in item descriptions in PayPal Payments Standard
- Error "only single currency unit allowed per invoice" related to minimum_amount_due in PayPal Payments Standard