Get payment config for a provider
Payments
Get payment config
Retrieve the initialization payload for a configured payment method.
GET
Get payment config for a provider
Request
Path parameters
| Parameter | Type | Description |
|---|---|---|
provider | string | The ShopPayment id (from GET /payments), not a provider name such as "paystack". |
Query parameters
| Parameter | Type | Description |
|---|---|---|
orderId | string | Required. The order the payment is initialized for. |
currency | string | Optional. Defaults to the shop currency (e.g. NGN). |
The
provider segment must be a valid 24-character ShopPayment id. Passing a
provider name (for example paystack) returns 400. List the available
payment methods and their ids with GET /payments.Successful response
The shape ofdata depends on the payment method type. A bank-transfer
method returns account details:
accountId, clientId, and an order object with the amount and metadata).
Error responses
Authorizations
JWT issued by the Salesive Store API for authenticated shoppers.
Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.
Headers
Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.
Path Parameters
ShopPayment id from GET /payments.
Response
Payment config retrieved.
The response is of type object.

