πŸ’³Get Payment Methods

Need help with your integration? Click here to chat with our custom GPT for instant answers.

All payment methods & their supported countries can be retrieved with a GET request. URL: https://widget.swapped.com/api/v1/merchant/get_payment_methods The public key can be appended to filter down the endpoint to only display your available methods. https://widget.swapped.com/api/v1/merchant/get_payment_methods?apiKey=YOUR_API_KEY

Response:

      {
        "id": 101,
        "name": "Credit Card",
        "fee": 1.75,
        "slug": "creditcard-extra",
        "default": true,
        "currency": [
          "DKK",
          "GBP",
          "BGN",
          "CHF",
          "JPY",
          "IDR",
          "BRL",
          "INR",
          "VND"
        ],
        "base_fee": {
          "base_fee": 0.35
        },
        "kyc_required": false,
        "order": 2,
        "disabled": false,
        "min_fee": 0,
        "min_amount": 7,
        "max_amount": 100000,
        "payment_group": "creditcard"
      }

Response Definition:

  • id: The payment method ID.

  • name: The name of the payment method.

  • fee: The fee percentage as an integer.

  • slug: The internal name for the payment method.

  • currency: The currencies the payment method supports.

  • base_fee: The base fee in EUR for the payment method.

  • disabled: Whether the method is disabled or not.

  • min_fee: The minimum fee for the payment method in EUR.

  • min_amount: The minimum amount in EUR that this payment supports.

  • max_amount: The maximum amount in EUR that this payment supports.

  • payment_group: The group a payment method belongs to.

The total fee for a method is a combination of base_fee + fee. i.e. 1.75% of the order total + 0.35 EUR.

Last updated