sendmock_payment_gateway_create
Add a custom gateway.
Toolset payments.
| Input | Type | Description |
|---|---|---|
| namerequired | string | The new gateway's name.Example: Upay |
| keyrequired | string | Its key in the API and in /providers/<key>/... paths; lowercase, fixed after creation.Example: upay |
| start_from | string | A gateway to copy (methods, redirect and notification), or null for blank.Example: bkash |
Example call
{
"name": "sendmock_payment_gateway_create",
"arguments": {
"name": "Upay",
"key": "upay",
"start_from": "bkash"
}
}Result: PaymentGatewayDefinition
- API
- POST
/api/v1/payments/gateways - CLI
sendmock payments gateways create- In the app
- Payments > Gateways > Add gateway