client and os_type parameters are supported by the following payment methods:boost · bpi · dana · gcash · 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. |
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 |
{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"
}
}
}{
"payment_method_options": {
"{method}": {
"client": "mini_app"
}
}
}