A German checkout needs a test plan for the payment methods it actually offers. A passing card-field check does not exercise a SEPA mandate, an invoice deadline or a girocard wallet integration. Start with the enabled methods in your provider account and write an expected order state for each transition.
| Currency | EUR (Euro) |
|---|---|
| Methods discussed |
|
| Authentication scope | PSD2 SCA applies within its scope, with defined exemptions. A card or wallet payment does not always require an extra challenge. Check the actual card/wallet flow; SEPA mandates and invoice collection have separate requirements. EBA: authentication for digital wallets · Checked |
| Local tool limits | No girocard profile. German IBAN checks cover local structure and checksum, not account ownership or a debit mandate. |
Separate girocard from an international co-badge
A physical card can carry girocard and an international card brand. Which route a purchase uses depends on the integration; the logos do not make the routes interchangeable. The girocard operator confirms e-commerce use through Sparkassen and Apple Pay, while availability depends on the issuer and supported integration. See the girocard merchant FAQ1.
Our generator has no girocard profile. A generated Visa-shaped fixture can exercise a Visa field, but cannot emulate girocard provisioning or wallet approval. For a supported wallet route, use your provider’s test environment and record the issuer/device conditions. Test an eligible wallet, an unavailable wallet, shopper cancellation and a return before the server has the final payment result. Offer another enabled method when the wallet is unavailable.
Card payments can also require asynchronous action. The 3-D Secure testing guide covers authentication and delayed server confirmation; do not hard-code “cards finish immediately, other methods wait.”
Keep a SEPA mandate separate from a collected payment
SEPA Core primarily serves consumers; B2B is exclusively for business payers. Both require a mandate and operate in euros. Their refund rules differ: Core has an eight-week no-reason refund right, with up to 13 months for an unauthorised debit; B2B has no equivalent refund right for an authorised transaction. These are scheme-specific rules, not a universal reversal timer. Consult the EPC Core and B2B comparison2 for scope and exceptions.
Before submitting a collection, assert that the selected scheme, payer category and recorded mandate agree. After submission, keep the provider’s collection state separate from the mandate state. Revoking a mandate prevents new collections; it does not erase the history of a previous one. A returned collection should enter reconciliation, including what to do if goods have already shipped.
The IBAN tool checks supported structure and MOD-97. A passing DE example does not verify a bank account, its owner, funds or a mandate. Use your provider’s documented sandbox account when testing the collection itself.
Exercise addresses and invoice deadlines without losing information
Keep postal codes as strings: 01067 becomes 1067 if converted to a number. The format check below does not assert that a street or postcode exists. Address existence and delivery eligibility are separate checks.
For purchase on invoice, load the due date and fulfilment policy from the order. The model treats an unpaid invoice as overdue at its configured deadline, and a reconciled payment as paid even if it arrives later. It does not invent a nationally fixed payment term or decide whether you should ship before payment.
export function germanPostalCode(value) {
// Format only; a five-digit string does not prove that an address exists.
return typeof value === 'string' && value.length === 5 && /^[0-9]+$/.test(value)
? { status: 'format-ok', postalCode: value } : { status: 'invalid' };
}
export function sepaCheckout({ scheme, payer, mandate, collection }) {
if (!['core', 'b2b'].includes(scheme) || !['consumer', 'business'].includes(payer) ||
!['active', 'missing', 'revoked'].includes(mandate) ||
!['not-submitted', 'pending', 'succeeded', 'failed', 'returned'].includes(collection)) {
return 'review';
}
if (scheme === 'b2b' && payer !== 'business') return 'business-required';
// A later mandate revocation does not undo a recorded collection.
if (collection === 'returned') return 'returned-review';
if (collection === 'succeeded') return 'collected-subject-to-scheme-rules';
if (collection === 'failed') return 'collection-failed';
if (collection === 'pending') return 'await-provider';
return mandate === 'active' ? 'ready-to-submit' : 'mandate-required';
}
export function invoiceState(dueAt, now, paid) {
if (![dueAt, now].every(Number.isSafeInteger) || typeof paid !== 'boolean') {
throw new TypeError('Use explicit timestamps and a reconciled paid flag');
}
return paid ? 'paid' : now < dueAt ? 'awaiting-payment' : 'overdue';
}| Case | Input / condition | Expected result |
|---|---|---|
| de-leading-zero | Postal code string 01067 survives form and JSON transport | {"postalCode":"01067","status":"format-ok"} |
| de-numeric-postcode | Number 1067 has already lost the leading zero | {"status":"invalid"} |
| de-core-no-mandate | Consumer Core collection has not been submitted; no mandate | "mandate-required" |
| de-b2b-consumer | Consumer incorrectly routed to B2B | "business-required" |
| de-pending | Submitted Core collection awaiting provider confirmation | "await-provider" |
| de-returned | Previously collected payment reported returned | "returned-review" |
| de-invoice-before-due | Unpaid invoice: now=999, configured dueAt=1000 | "awaiting-payment" |
| de-invoice-due | Unpaid invoice reaches configured deadline | "overdue" |
| de-invoice-paid | Reconciled payment after deadline | "paid" |
The timestamps in these cases are small deterministic test values, not calendar dates. In an integration, store the actual agreed deadline with an explicit time zone and test the boundary immediately before and at that instant. A screenshot of a transfer is not the reconciled paid flag.
Run and extend the Germany cases
Extract the runnable guide examples and use Node.js 22 or later:
node guide-demo.mjs germany
node --test guide-examples.test.mjs regional-guide-examples.test.mjs
These offline tests cover data and state decisions. Add provider sandbox tests for mandate creation, collection failure and return, plus a mobile wallet cancellation test. The payment form checklist helps keep browser behaviour and server assertions in the same test plan.