The customer reference is usually your buyer's purchase order number. Buyers write long ones.
The rule
- Adyen, Level 2/3 data:
levelTwoThree.customerReferenceNumberis required for Level 2 and Level 3. ASCII, maximum 25 characters, must not start with a space or contain only spaces or zeros. - If a required field is missing or incorrectly formatted for both levels, Adyen drops all Level 2 and Level 3 data. The payment still goes through.
- Stripe handles the same field differently: it truncates
payment_details.customer_referenceandorder_referenceto 25 alphanumeric characters, excluding spaces, before sending them (Stripe API, Create a PaymentIntent).
Why it happens
The reference is copied as typed on the purchase order, with a department or site suffix.
Wrong and right
Wrong: 33 characters
{ "enhancedSchemeData": { "levelTwoThree": { "customerReferenceNumber": "PO-2026-000048120-FACILITIES-EAST", "totalTaxAmount": 1662 } } }Right: the PO number alone
{ "enhancedSchemeData": { "levelTwoThree": { "customerReferenceNumber": "PO-2026-000048120", "totalTaxAmount": 1662 } } }Keep the full reference on your invoice; the card network only needs the part the buyer's system matches.
What to do
- Trim the reference to 25 characters, keeping the PO number and dropping suffixes.
- Strip leading spaces, and send nothing rather than all zeros when the buyer gave no reference.
Sources
- Adyen, Level 2/3 data,
customerReferenceNumberand what Adyen does with invalid data (read November 24, 2026). - Stripe API, Create a PaymentIntent,
payment_details(read November 24, 2026).
Run this sale through the checker.
The sale from this page is already filled in. Press Check transaction, then change it to one of your own. No account needed.