Prompt
How do I accept bank transfers and cards from the same API?
Latest observation
Oct 14, 2026
OpenAI APIWeb search: off
You generally do this with a single payment API that supports multiple payment methods, then let the API create the right payment flow based on the method chosen.
Common approach
-
Create one “payment intent” / “checkout session”
- Amount, currency, customer, metadata, etc.
- Specify that you accept both:
- card
- bank transfer (ACH, SEPA, Bacs, wire, etc., depending on country)
-
Show payment method options to the customer
- If they choose card:
- collect card details or redirect to hosted checkout
- confirm payment immediately
- If they choose bank transfer:
- provide bank details or virtual account instructions
- wait for the transfer to arrive
- reconcile automatically when the transfer is matched
- If they choose card:
-
Handle asynchronous confirmation
- Card payments are usually immediate or near-real-time.
- Bank transfers are often delayed, so you’ll need webhooks or polling to detect when funds arrive.
If you’re using Stripe, for example
You can use PaymentIntents or Checkout Sessions with multiple payment methods enabled.
Example concept
- Enable
card - Enable
bank_transfer-type methods depending on region - Use webhooks to listen for:
payment_intent.succeededcharge.succeeded- transfer-related events or bank transfer reconciliation events
Important design notes
- Not all bank transfers are equal
- ACH, SEPA, Bacs, wire, RTP, etc. have different settlement times and API support.
- Some APIs treat bank transfers as “push” payments
- The customer sends money to a generated account/reference.
- Some APIs support “virtual bank accounts”
- Useful for automatically matching incoming transfers to an invoice/order.
- Cards are synchronous; bank transfers are asynchronous
- Your backend should support both states:
pendingpaidfailedpartially_paid
- Your backend should support both states:
Recommended architecture
- One endpoint like
POST /payments - Request includes:
- order ID
- amount
- currency
- accepted methods:
["card", "bank_transfer"]
- Backend creates payment object in the provider
- Frontend renders available methods
- Webhook updates order status after confirmation
If you tell me your provider
I can give you the exact API flow and code for:
- Stripe
- Adyen
- PayPal/Braintree
- Checkout.com
- Wise
- Mollie
- Plaid / ACH processors
If you want, I can show a Stripe example in Node.js, Python, or cURL.