An order placed outside the storefront is blocked
Symptom
A headless storefront, a mobile app or another integration places an order with a digital item, and Magento refuses it. The integration gets one of these messages:
- "Digital content waiver is incomplete for item …", followed by the SKU;
- "Digital content waiver text has changed — please reload checkout."
Over GraphQL, Magento replaces both with its general message "Unable to place order: A server error stopped your order from being placed. Please try to place your order again". The exact message is in the Magento exception log.
Orders of physical goods only go through. The same messages can show in the standard checkout when the customer didn't complete the waiver step.
Checks
The setting is in Stores → Configuration → MageMe Extensions → EU Withdrawal, group Digital Waiver (Art. 16(m)). Switch the scope to the store view of the order.
- Look at Enforce Waiver on API / Headless Orders. It shows Yes, the default. With Yes, the module refuses an API order with a digital item until the waiver is on file for each digital item. The next checks find out why it isn't.
- Check that the Pro packages EU Withdrawal API, and for GraphQL EU Withdrawal GraphQL, are installed. They are. Without them, a headless storefront has no way to record the waiver, so the order is always refused.
- Ask your developer whether the integration shows the waiver texts to the customer and sends the two statements through the waiver API before it places the order. It does, for every digital item of the cart.
- If the message says the text has changed: ask whether the billing address or the store view changed after the customer accepted. It didn't. The accepted text is tied to the language of the store view and the billing country. When either changes, the module expects the customer to accept the new text.
- Ask whether the cart waited a long time between the waiver and the order. It is newer than Quote Lifetime (days) in Stores → Configuration → Sales → Checkout → Shopping Cart, or 30 days if that field is empty. Older waiver records from carts that never became an order are deleted every hour.
Expected result
The integration loads the waiver texts, the customer ticks both statements, the integration records them, and the order is placed. Afterwards the customer gets the waiver confirmation email, as with the standard checkout.
Fix
- If check 2 failed: install Pro, or select No in Enforce Waiver on API / Headless Orders (see the last point below). Without Pro, the waiver can be given only on the storefront waiver step. See EU Withdrawal API.
- If check 3 failed: your developer adds the waiver to the integration, through REST or GraphQL. See Record the waiver in a headless checkout.
- If check 4 or 5 failed: the integration loads the texts again, shows them to the customer and records the two statements again before it places the order.
- If your integration keeps its own record of the consent, or your store does not use Pro, you can select No in Enforce Waiver on API / Headless Orders. The Luma checkout also places its orders through the API, so No removes the check there as well. Without the check, the module has no waiver on file for these items and treats them like any other item when the customer withdraws. See When the item leaves the withdrawal.
If none of the checks helped, contact MageMe support with the exact message, the SKU and how the order was placed.
Related
- Digital content and the checkout waiver: how the module checks the waiver when an order is placed.
- Digital content: which products need the waiver.
- Settings: Digital waiver: Enforce Waiver on API / Headless Orders.
- EU Withdrawal API: the Pro waiver calls for a headless checkout.
- The waiver step does not appear at checkout: when the storefront doesn't ask for the waiver.