Payment Information
The Payment Information group determines BT-81 (payment means code) and BT-20 (payment terms) in the EN-16931 document. You can define default values and map individual Magento payment methods differently.
- Default Payment Terms (
payment/default_terms, default:This invoice is already paid., BT-20): Payment terms when no method-specific mapping exists. - Default Payment Means Code (
payment/default_means_code, default:68, BT-81): UNTDID 4461 payment means code. Common codes:30(bank transfer),58(SEPA transfer),48(card),1(cash). - Payment Method Mapping (
payment/payment_method_mapping): Assigns individual Magento payment methods their own payment terms, EN-16931 payment means codes and due days.
Payment method mapping
Via the mapping table you store, per Magento payment method (e.g. "Prepayment", "Invoice", "PayPal"):
| Column | Meaning |
|---|---|
| Payment method | The Magento payment method of the order. |
| Payment terms | Free text for BT-20 (e.g. "Payable within 14 days net"). |
| Payment means code | UNTDID 4461 code (BT-81), matching the method. |
| Due days | Number of days until due (for the due date BT-9). |
SEPA direct debit (code 59)
For direct debit, XRechnung additionally requires the group BG-19 with the creditor identifier (BT-90) and the customer's IBAN to be debited (BT-91); the mandate reference (BT-89) is optional. Both mandatory values must be present together (BR-DE-30, BR-DE-31), and the IBAN is verified against its check digits (BR-DE-20).
Magento has no direct debit payment of its own and therefore does not store these details anywhere. It is therefore not sufficient to map the code 59 in the payment method mapping. Instead, the data is supplied through an extension point that you connect to your own direct debit solution – see Developer.