Card Payments
AcountPay partners can enable card payment acceptance for their merchants. This includes online payments (Payment Page, Online SDK), in-store tap-to-pay via CheckoutX, and merchant-initiated transactions for subscriptions. AcountPay handles all communication with the payment processor APIs. Partners only need to call AcountPay’s Partner API.Overview
Enabling card payments for a merchant involves these steps:- Onboard the merchant — Initiate KYB verification
- Set up terminals — Register online or in-store terminals
- Accept payments — Create orders and process payments
Step 1: Onboard Merchant for Card Payments
Card payment onboarding is separate from A2A bank payment onboarding. A merchant can have both.Initiate Onboarding
webKybUrl — a link to the KYB verification form. AcountPay automatically emails this link to the merchant. You can also share it directly.
Response:
Check Onboarding Status
Poll this endpoint to track the merchant’s KYB progress:APPLICATION_INITIATED → APPLICATION_SUBMITTED → APPLICATION_SIGNED → APPLICATION_COMPLETED → MERCHANT_CREATED
Once status is MERCHANT_CREATED, the merchant has a merchantId and storeId for card payments, and you can register terminals.
Step 2: Set Up Terminals
Online Terminals (for websites)
Register an online terminal to accept payments on the merchant’s website:- PaymentPage — Hosted payment page. Simplest integration.
- SelfHostedPage — Embed payment fields in the merchant’s website using the Online SDK.
- MerchantInitiated — For recurring payments and subscriptions.
terminalId and terminalPublicKey needed for SDK initialization.
CheckoutX Terminals (for in-store tap-to-pay)
Generate a registration code for the merchant’s Android device:terminalId once registration completes.
Step 3: Accept Payments
Create an Order
paymentLink to redirect the customer.
For Online SDK terminals, use the orderId and nonce from the response to initialize the SDK.
For CheckoutX, use the orderId for the app-switch to CheckoutX on the merchant’s device.
Check Payment Status
Webhooks
Subscribe to card payment events by adding these event types to your webhook configuration:card.payment.completedcard.payment.failedcard.payment.cancelledcard.payment.initiatedcard.payment.refundedcard.order.cancelled

