sendmock_payment_flow_create
Add a flow.
Toolset payments.
| Input | Type | Description |
|---|---|---|
| keyrequired | string | The flow's key; fixed after creation.Example: wallet_otp |
| namerequired | string | The flow's name.Example: Wallet with OTP |
| picker_tabrequired | string | The checkout picker tab its methods show under, e.g. "Mobile banking".Example: Mobile banking |
| stepsrequired | PaymentFlowStep[] | The steps in order.Example: [{"type":"otp","title":"Enter the code sent to your phone","field_label":"Verification code","hint":"We sent a 6 digit code to your {method} number.","button_label":"Verify"}] |
Example call
{
"name": "sendmock_payment_flow_create",
"arguments": {
"key": "wallet_otp",
"name": "Wallet with OTP",
"picker_tab": "Mobile banking",
"steps": [
{
"type": "otp",
"title": "Enter the code sent to your phone",
"field_label": "Verification code",
"hint": "We sent a 6 digit code to your {method} number.",
"button_label": "Verify"
}
]
}
}Result: PaymentFlowDefinition
- API
- POST
/api/v1/payments/flows - CLI
sendmock payments flows create- In the app
- Payments > Flows > Add flow