Use Direct API when you need full control of checkout UX, risk signal collection, and payment orchestration in a server-to-server integration. Merchants call Onerway gateway endpoints directly, host a merchant-hosted payment page, and orchestrate the end-to-end payment flow.
Direct API is designed for teams that need highly customized payment journeys and tight integration with internal systems.
Direct API expands your PCI scope. Since merchants handle sensitive cardholder data directly (for example PAN and CVV), they typically need to meet PCI DSS (Payment Card Industry Data Security Standard) SAQ D or a higher compliance level.
| Capability | Description |
|---|---|
| Checkout Orchestration | Design your payment UI, interaction model, and state transitions for full brand consistency |
| Risk Signal Collection | Capture device, behavior, and session signals for risk decisioning and conversion optimization |
| Authentication Control | Control 3DS pre/post-challenge UX, return URLs, and fallback logic |
| Direct Gateway Connectivity | Connect directly to Onerway gateway and tune timeout, retry, and idempotency strategies |
| Cross-platform Consistency | Reuse a unified payment domain model and risk strategy across Web, App, and mini-programs |
| Feature | Checkout | SDK | Direct API |
|---|---|---|---|
| Integration Complexity | Low | Medium | High |
| UI Control | Limited Customization | Partial Customization | Full Customization |
| Payment Page Ownership | Onerway-hosted page | Embedded payment controls | Merchant-hosted page |
| Fraud-signal Visibility | Low | Medium | High |
| PCI Scope | Lower | Lower | Highest (SAQ D) |
| 3DS Flow Control | Onerway-managed | SDK-managed | Merchant-orchestrated |
| Development Timeline | Fast | Medium | Long |
| Typical Scenario | Quick launch | In-app payment experience | Deep customization and risk ops |
Use Direct API if you need:
Before you start, make sure you have:
Important: Use signature-verified webhook events as the source of truth for fulfillment and accounting. Use synchronous responses only for immediate customer feedback.
| Capability | Transaction Type / Mode | Description |
|---|---|---|
| Direct Card Payment | SALE | Customer enters card details for a one-time card transaction |
| Card-on-File Token Payment | Initial CIT + subsequent MIT | Store credentials once, then charge with tokenized credentials to reduce checkout friction |
| Subscription Billing | Initial CIT (with 3DS) + recurring MIT | Supports managed and self-managed subscriptions for recurring billing scenarios |
| Authorization and Capture | AUTH + CAPTURE | Authorize funds first, then capture later; suitable for delayed fulfillment use cases |
AUTH) Capability NotesAUTH places an authorization hold and does not immediately capture fundsCAPTURE by referencing the original authorization transactionId (commonly as originTransactionId)status=R with redirectUrl, redirect the customer to complete issuer-side 3DS| Card Brand | Support Status |
|---|---|
| Visa | Default Supported |
| MasterCard | Default Supported |
| Maestro | Default Supported |
| Discover | Default Supported |
| Diners | Default Supported |
| American Express | Requires Application |
| JCB | Requires Application |
Note: American Express and JCB require separate application to enable. Please contact your account manager.
Under Direct API, merchants process cardholder data directly and must satisfy PCI DSS controls across system, network, process, and organizational layers (typically SAQ D scope).
API supports 3D Secure 2.x authentication. Merchants must implement 3DS redirect/challenge handling, callback processing, and failure fallback logic, and provide returnUrl for post-authentication redirects.
All API traffic must use TLS 1.2+. Requests should be signed to ensure integrity and non-repudiation, and Webhook processing should include signature verification and replay protection.
Customize look and feel
Customize the visual appearance of the Onerway Web SDK checkout using built-in themes, CSS variables, custom stylesheets, and fine-grained style overrides.
Build a subscriptions integration
Implement recurring billing with managed or self-managed subscriptions using the Onerway Direct API. Requires PCI DSS compliance.