v1

latestOpenAPI 3.1.02026-07-26490301.4 KB
Payment page

Hosted payment page

post/paymentPage

Headers

X-Request-IDstring

Unique ID of request

Request body

metadataobject

Use to store additional information associated with the payment. You can add parameters <b>udf1</b> and <b>udf2</b> to pass your internal values such as transactionId, chargeId, orderId, bundleId, or affiliateId. Any values passed will be available in the Merchant Portal

ttlinteger

The payment page lifetime in seconds. By default, set to 600

Example request

{
  "sku": [
    {
      "name": "TEST_EN_00",
      "siteId": "1811",
      "price": [
        {
          "offset": "0d",
          "amount": 29.37,
          "currency": "USD",
          "repeat": false
        },
        {
          "offset": "60d",
          "amount": 50,
          "currency": "USD",
          "repeat": false
        },
        {
          "offset": "30d",
          "amount": 30,
          "currency": "USD",
          "repeat": true
        }
      ],
      "currency": "USD",
      "title": "30 day recurring + First 30 Days For Free",
      "url": {
        "redirectUrl": "https://google.com/payment/gateway/success",
        "ipnUrl": "https://google.com/callback"
      }
    }
  ],
  "consumer": {
    "id": "59024134",
    "externalId": "some-12958305390",
    "firstName": "John",
    "lastName": "Doe",
    "email": "someuser2020130110@google.com"
  },
  "payment": {
    "method": [
      "card",
      "sepa"
    ],
    "selected": "card",
    "secure": true,
    "test": false,
    "mid": "s938503530f"
  },
  "metadata": {
    "trackingId": "98530968732-93625235"
  },
  "emailOptions": {
    "send": true
  },
  "ttl": 1200
}

Response

Created

urlstring

Gateway payment page URL to which you redirect your user

Example response

{
  "url": "https://pay.centrobill.com/unique-hash"
}