Hosted payment page
Changed onRequest
- Base URLhttps://api.centrobill.com
- URLhttps://api.centrobill.com/paymentPage
- AuthAPI key in header Authorization
Headers
Unique ID of request
Request body
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"
},
"parameters": {
"xsell": 0
}
},
{
"name": "TEST_XSELL_00",
"siteId": "1812",
"price": [
{
"offset": "0d",
"amount": 9.99,
"currency": "USD",
"repeat": false
}
],
"currency": "USD",
"title": "Cross-sell product",
"url": {
"redirectUrl": "https://google.com/payment/gateway/success",
"ipnUrl": "https://google.com/callback"
},
"xsell": "checked",
"parameters": {
"xsell": 1,
"offer": "A"
}
}
],
"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
Example response
{
"url": "https://pay.centrobill.com/unique-hash"
}Changes
- breaking
removed the enum value
banktransferChileof the request property/// - breaking
removed the enum value
banktransferChileof the request property/ - breaking
the
/request property format changed fromISO2toISO 639-1 - info
added the new optional request property
- info
added the new optional request property
/ - info
added the new optional request property
/// - info
added the new optional request property
/// - info
added the new optional request property
/// - info
added the new
blikenum value to the request property/// - info
added the new
blikenum value to the request property/ - info
added the new
cashappenum value to the request property/// - info
added the new
cashappenum value to the request property/ - info
added the new
duitnowenum value to the request property/// - info
added the new
duitnowenum value to the request property/ - info
added the new
gojekidenum value to the request property/// - info
added the new
gojekidenum value to the request property/ - info
added the new
netellerenum value to the request property/// - info
added the new
netellerenum value to the request property/ - info
added the new
offlinebankingenum value to the request property/// - info
added the new
offlinebankingenum value to the request property/ - info
added the new
pagoenum value to the request property/// - info
added the new
pagoenum value to the request property/ - info
added the new
payconiqenum value to the request property/// - info
added the new
payconiqenum value to the request property/ - info
added the new
paynowenum value to the request property/// - info
added the new
paynowenum value to the request property/ - info
added the new
promptpayenum value to the request property/// - info
added the new
promptpayenum value to the request property/ - info
added the new
rapidenum value to the request property/// - info
added the new
rapidenum value to the request property/ - info
added the new
tossenum value to the request property/// - info
added the new
tossenum value to the request property/ - info
added the new
trustlyenum value to the request property/// - info
added the new
trustlyenum value to the request property/ - info
added the new
viettelpayenum value to the request property/// - info
added the new
viettelpayenum value to the request property/
- breaking