Open API v2 / eCommerce / Payment Gateway Settings

Payment Gateway Settings

Every request needs a bearer token: Authorization: Bearer <token>. Base URL https://your-site.webinone.com. New to field types? See the type reference.

GET/api/v2/admin/payment-gateways#

Retrieves a payment gateways

Response
CountryCurrencyobject
Determines for which market they are applied.
PaymentGatewaySettingsobject
The payment gateway configuration bound to this currency-and-country market, including the chosen provider and its credentials.
PaymentFlowSettingsobject
Checkout flow behavior for this market's gateway, such as two-step card capture, immediate subscription access, and how the payment form is displayed.
curl "https://your-site.webinone.com/api/v2/admin/payment-gateways" \
  -H "Authorization: Bearer <token>"
Response · 200
[
  {
    "CountryCurrency": {
      "Hash": 0,
      "CurrencyId": "USD",
      "Currency": "USD",
      "CountryId": "string",
      "CountryAbbreviation": "string"
    },
    "PaymentGatewaySettings": {
      "CountryCurrency": {
        "Hash": 0,
        "CurrencyId": "USD",
        "Currency": "USD",
        "CountryId": "string",
        "CountryAbbreviation": "string"
      },
      "Id": "string",
      "Settings": "string",
      "Type": "stripe",
      "DisplayName": "Example"
    },
    "PaymentFlowSettings": {
      "CountryCurrency": {
        "Hash": 0,
        "CurrencyId": "USD",
        "Currency": "USD",
        "CountryId": "string",
        "CountryAbbreviation": "string"
      },
      "Id": "string",
      "Settings": "string",
      "Type": "stripe",
      "DisplayName": "Example"
    }
  }
]
PUT/api/v2/admin/payment-gateways#

Updates an existing payment gateway settings

Body parameters
CountryCurrencyobjectrequired
Determines for which market they are applied.
Typeenumrequired
Provider name. Possible values: stripe, eway, paypal, bamboraEU, authorizeNet, paypalFlow, stripeElements, braintree.Possible values: stripeewaypaypalbamboraEUauthorizeNetpaypalFlowstripeElementsbraintree
Settingsobjectrequired
Technical keys and logic.
Response
CountryCurrencyobject
Determines for which market they are applied.
Idstring · nullable
Unique identifier. Technical record number in the database. Read-only.
Settingsobject · nullable
Configuration options for this resource.
Typeenum
Provider name. Possible values: stripe, eway, paypal, bamboraEU, authorizeNet, paypalFlow, stripeElements, braintree.Possible values: stripeewaypaypalbamboraEUauthorizeNetpaypalFlowstripeElementsbraintree
DisplayNamestring · nullable
The name of the payment method that the customer sees at checkout.
curl -X PUT "https://your-site.webinone.com/api/v2/admin/payment-gateways" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"CountryCurrency":{"Hash":0,"CurrencyId":"USD","Currency":"USD","CountryId":"string","CountryAbbreviation":"string"},"Type":"stripe","Settings":{"ApiKey":"string","ApiSecret":"string","ClientKey":"string","SignatureKey":"string","HashKey":"string","MerchantNumber":"string","CurrencyId":"USD","Currency":"USD","Image":"string","WebhooksToken":"string","Password":"string","Appearance":"string","Endpoint":"Production","TwoStepCardPayments":false,"GiveAccessForSubscriptionImmediately":false,"CheckoutIntegration":"Redirect","ShowSuccessPage":false,"Language":"string"}}'
Response · 200
{
  "CountryCurrency": {
    "Hash": 0,
    "CurrencyId": "USD",
    "Currency": "USD",
    "CountryId": "string",
    "CountryAbbreviation": "string"
  },
  "Id": "string",
  "Settings": "string",
  "Type": "stripe",
  "DisplayName": "Example"
}
DELETE/api/v2/admin/payment-gateways/{paymentGatewayId}#

Deletes an existing payment gateway settings

Parameters
paymentGatewayIdstring · pathrequired
Resource identifier.
curl -X DELETE "https://your-site.webinone.com/api/v2/admin/payment-gateways/1" \
  -H "Authorization: Bearer <token>"
PUT/api/v2/admin/payment-gateways/flow#

Updates an existing payment flow settings

Body parameters
CountryCurrencyobjectrequired
Determines for which market they are applied.
Typeenumrequired
Provider name. Possible values: stripe, eway, paypal, bamboraEU, authorizeNet, paypalFlow, stripeElements, braintree.Possible values: stripeewaypaypalbamboraEUauthorizeNetpaypalFlowstripeElementsbraintree
Settingsobjectrequired
Technical keys and logic.
Response
CountryCurrencyobject
Determines for which market they are applied.
Idstring · nullable
Unique identifier. Technical record number in the database. Read-only.
Settingsobject · nullable
Configuration options for this resource.
Typeenum
Provider name. Possible values: stripe, eway, paypal, bamboraEU, authorizeNet, paypalFlow, stripeElements, braintree.Possible values: stripeewaypaypalbamboraEUauthorizeNetpaypalFlowstripeElementsbraintree
DisplayNamestring · nullable
The name of the payment method that the customer sees at checkout.
curl -X PUT "https://your-site.webinone.com/api/v2/admin/payment-gateways/flow" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"CountryCurrency":{"Hash":0,"CurrencyId":"USD","Currency":"USD","CountryId":"string","CountryAbbreviation":"string"},"Type":"stripe","Settings":{"ApiKey":"string","ApiSecret":"string","ClientKey":"string","SignatureKey":"string","HashKey":"string","MerchantNumber":"string","CurrencyId":"USD","Currency":"USD","Image":"string","WebhooksToken":"string","Password":"string","Appearance":"string","Endpoint":"Production","TwoStepCardPayments":false,"GiveAccessForSubscriptionImmediately":false,"CheckoutIntegration":"Redirect","ShowSuccessPage":false,"Language":"string"}}'
Response · 200
{
  "CountryCurrency": {
    "Hash": 0,
    "CurrencyId": "USD",
    "Currency": "USD",
    "CountryId": "string",
    "CountryAbbreviation": "string"
  },
  "Id": "string",
  "Settings": "string",
  "Type": "stripe",
  "DisplayName": "Example"
}
DELETE/api/v2/admin/payment-gateways/flow/{paymentFlowSettingsId}#

Deletes an existing payment flow settings

Parameters
paymentFlowSettingsIdstring · pathrequired
Resource identifier.
curl -X DELETE "https://your-site.webinone.com/api/v2/admin/payment-gateways/flow/1" \
  -H "Authorization: Bearer <token>"
GET/api/v2/admin/payment-gateways/payment-providers-settings#

Retrieves a payment gateway settings

Response
PaymentGatewaysarray of objects
The currency-and-country markets that have a payment gateway configured.
PaymentTypesarray of objects
The available payment provider types, each paired with its display name.
Endpointsarray of strings
The gateway operating modes available for selection, such as Production and Sandbox.
BamboraLanguagearray of objects
The interface languages supported by the Bambora gateway payment page, each paired with its display name.
CheckoutIntegrationsarray of strings
The available payment-form display methods, such as Redirect, Modal, and Inline.
curl "https://your-site.webinone.com/api/v2/admin/payment-gateways/payment-providers-settings" \
  -H "Authorization: Bearer <token>"
Response · 200
{
  "PaymentGateways": [
    {
      "Hash": 0,
      "CurrencyId": "USD",
      "Currency": "USD",
      "CountryId": "string",
      "CountryAbbreviation": "string"
    }
  ],
  "PaymentTypes": [
    {
      "Item1": "string",
      "Item2": "string"
    }
  ],
  "Endpoints": [
    "string"
  ],
  "BamboraLanguage": [
    {
      "Item1": "string",
      "Item2": "string"
    }
  ],
  "CheckoutIntegrations": [
    "string"
  ]
}