client and os_type parameters are supported by the following payment methods:alipay · alipay_cn · alipay_hk · boost · bpi · dana · gcash · kakao_pay · maya · rabbit_line_pay · tng · truemoneypayment_method_options.{method} when creating a PaymentIntent.| Parameter | Type | Required | Values | Default | Description |
|---|---|---|---|---|---|
client | string | No | web, wap, app, mini_app | web | The client platform type used to initiate the payment. |
os_type | string | Conditional | ios, android | — | The operating system of the shopper's device. Required when client is wap or app. |
client values| Value | Description |
|---|---|
web | Payment initiated from a PC browser. This is the default. |
wap | Payment initiated from a mobile browser. |
app | Payment initiated from a mobile application. |
mini_app | Payment initiated from a mini program. Not supported by all payment methods — see Mini App support below. |
os_type values| Value | Description |
|---|---|
ios | The shopper is using an iOS device. |
android | The shopper is using an Android device. |
os_typeis required whenclientiswaporapp. It must not be set whenclientiswebormini_app.
| Payment Scenario | client | os_type |
|---|---|---|
| PC Web | web | Not required |
| Mobile Web — iOS | wap | ios |
| Mobile Web — Android | wap | android |
| Mobile App — iOS | app | ios |
| Mobile App — Android | app | android |
| Mini App | mini_app | Not required |
mini_app is only supported by the following payment methods:alipay_cn · alipay_hk · dana · gcash · tng · truemoneyclient to mini_app for any other payment method (e.g. alipay, boost, bpi, kakao_pay, maya, rabbit_line_pay) will result in a validation error.Reference: Alipay+ Cashier Payment — Accept payments with Mini Program
{method} with the actual payment method name (e.g. gcash, truemoney).{
"payment_method_options": {
"{method}": {
"client": "web"
}
}
}client defaults to web, so it can be omitted:{
"payment_method_options": {
"{method}": {}
}
}{
"payment_method_options": {
"{method}": {
"client": "wap",
"os_type": "ios"
}
}
}{
"payment_method_options": {
"{method}": {
"client": "wap",
"os_type": "android"
}
}
}{
"payment_method_options": {
"{method}": {
"client": "app",
"os_type": "ios"
}
}
}{
"payment_method_options": {
"{method}": {
"client": "app",
"os_type": "android"
}
}
}Only supported for: alipay_cn,alipay_hk,dana,gcash,tng,truemoney.
{
"payment_method_options": {
"{method}": {
"client": "mini_app"
}
}
}