payway_purchase
Create a PayWay purchase transaction with redirect, QR, or deeplink checkout, returning HTML or JSON based on the selected payment option.
Instructions
Create a PayWay Purchase transaction (redirect/QR/deeplink checkout). Returns checkout HTML/JSON depending on payment_option.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| No | |||
| items | No | ||
| phone | No | ||
| amount | Yes | ||
| payout | No | ||
| tran_id | Yes | Unique transaction ID you generate | |
| currency | No | ||
| lastname | No | ||
| lifetime | No | Minutes; 3 min to 30 days | |
| shipping | No | ||
| firstname | No | ||
| view_type | No | ||
| cancel_url | No | ||
| return_url | No | Plain URL; will be base64-encoded automatically | |
| payment_gate | No | ||
| custom_fields | No | ||
| return_params | No | ||
| payment_option | No | ||
| return_deeplink | No | ||
| skip_success_page | No | ||
| continue_success_url | No |