Managing the invoice ID
When a transaction is created, the payment gateway generates and transmits an invoice number to PayPal in the Invoice ID field.
The field value must be unique to avoid the DUPLICATE_INVOICE_ID error.
To ensure field uniqueness, Monetico Retail generates the invoice number as follows:
- If you are sending an order number, the Invoice ID field consists of the order number and the UUID (unique reference generated by the gateway) separated by a hyphen.Example:
- Order ID: CX_12345
- UUID : 90df7d7cd29f46bd8ff510b65f123579
- Invoice ID : CX_12345-90df7d7cd29f46bd8ff510b65f123579
- If you are not sending an order number, the Invoice ID field consists only the UUID (unique reference generated by the gateway).
Example:
- UUID : 90df7d7cd29f46bd8ff510b65f123580
- Invoice ID : 90df7d7cd29f46bd8ff510b65f123580
We recommend that you provide an order number to make it easier to find your transactions in your PayPal Back Office.