Sources API
Overviewβ
The Sources API enables you to accept alternative payment methods beyond credit cards. Sources represent payment channels like PromptPay QR codes, mobile banking, internet banking, installment plans, and more.
What are Sources?β
Sources are payment method objects that represent:
- PromptPay QR codes - Real-time QR-based payments
- Mobile banking - In-app payment redirects (SCB Easy, Krungthai Next, etc.)
- Internet banking - Online bank transfers
- Convenience stores - Cash payments at 7-Eleven, FamilyMart, etc.
- Installment plans - Pay-in-installments options
- E-wallets - TrueMoney, Rabbit LINE Pay, etc.
Key Featuresβ
Wide Payment Method Supportβ
- QR Payments - PromptPay, Alipay, WeChat Pay
- Bank Transfers - Mobile and internet banking
- Installments - 0% interest installment plans
- Cash Payments - Convenience store payments
- E-wallets - Digital wallet integrations
Flexible Workflowsβ
- Redirect-based - Customer redirects to complete payment
- QR code display - Show QR code for customer to scan
- Webhook notifications - Real-time payment status updates
- Asynchronous processing - Payments complete outside your site
Regional Supportβ
- Thailand - PromptPay, SCB, Krungthai, BAY, BBL, etc.
- Malaysia - FPX, Boost, GrabPay, Touch 'n Go
- Singapore - PayNow, GrabPay
- International - Alipay, WeChat Pay
How Sources Workβ
Standard Flowβ
βββββββββββ βββββββββββ βββββββββββ βββββββββββ
β Your β β Omise β β Payment β β Customerβ
β Server β β API β β Providerβ β β
ββββββ¬βββββ ββββββ¬βββββ ββββββ¬βββββ ββββββ¬βββββ
β β β β
β 1. Create source β β β
βββββββββββββββββββ>β β β
β β β β
β 2. Return source β β β
β (with QR/URL) β β β
β<βββββββββββββββββββ€ β β
β β β β
β 3. Create charge β β β
βββββββββββββββββββ>β β β
β β β β
β 4. Return charge β β β
β (status:pending) β β
β<βββββββββββββββββββ€ β β
β β β β
β 5. Display QR β β β
β or redirect β β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ>