Built-in Card Acquiring
Built-in card acquiring connects TrexWallet payment orders to Stripe Checkout and T-Bank Acquiring. TrexWallet owns the order, tariff, and final payment status. The card integration creates provider sessions, verifies provider callbacks, and reconciles pending payments.
When It Is Used
| Card Flow | Processing |
|---|---|
| Built-in Stripe Checkout | Built-in card acquiring |
| Built-in T-Bank Acquiring | Built-in card acquiring |
| Custom card acquirer | Merchant continuation flow |
Custom card acquirers use a merchant continuation flow configured on the terminal.
Payment sequence
- The payer selects a built-in card terminal on
/pay. - TrexWallet locks the order to that terminal and applies the tariff.
- The card integration creates a provider checkout session.
- The payer completes checkout on the provider side.
- The provider sends a callback, or reconciliation obtains the final status.
- TrexWallet marks the payment confirmed, failed, canceled, or timed out.
Reconciliation
Provider callbacks are best-effort. Reconciliation checks pending provider sessions and updates TrexWallet when the provider reaches a terminal status.
Configuration
Operators configure:
- the private service endpoint and deployment-issued service credentials;
- provider credentials;
- provider webhook secrets;
- optional provider callback URL when the provider requires it.
Keep provider secrets in deployment configuration and rotate them in the provider portal when needed.
Operator Setup
- In
/TrexAdmin/TokenNetworks, create or enable a built-in acquiring terminal. - Set the terminal contract to card acquiring and allow payment orders.
- Leave flow path empty so
/payuses the built-in card widget. - Configure the matching tariff in
/TrexAdmin/Tariffs. - Configure provider credentials in deployment settings.
- Test a small card payment and verify it appears in
/TrexAdmin/GatewayOrders.
Routing
The payment page uses the standard public payment routes. Provider callbacks use the reserved acquiring callback route and are verified with provider signatures. Merchant continuation flows must not use the acquiring callback prefix.
Operational Notes
- Provider network errors are logged and covered by reconciliation.
- Provider secrets stay in protected deployment settings.
- If built-in card acquiring is disabled, card checkout becomes unavailable; crypto, internal payments, and merchant continuation keep working.