checkout_com_payments
Create a checkout.com payment
Changed onCreate a checkout.com payment
post/checkout_com_payments
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/checkout_com_payments
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"token": "tok_4gzeau5o2uqubbk6fufs3m7p54",
"success_url": "http://commercelayer.dev/checkout_com/success",
"failure_url": "http://commercelayer.dev/checkout_com/failure",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"order": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The created checkout.com payment object
Changes
- breaking
added the new required request property
/// - breaking
request property
/was restricted to a list of enum values - breaking
the request property
//became required - breaking
the request property
//became required - warning
removed the request property
// - warning
removed the request property
// - warning
removed the request property
/// - warning
removed the request property
/// - info
the
request property default valuecheckout_com_paymentswas removed - info
added the new
checkout_com_paymentsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking