paypal_payments
Create a paypal payment
Changed onCreate a paypal payment
post/paypal_payments
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/paypal_payments
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"return_url": "https://yourdomain.com/thankyou",
"cancel_url": "https://yourdomain.com/checkout/payment",
"note_to_payer": "Thank you for shopping with us!",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"order": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The created paypal payment object
Changes
- breaking
added the new required request property
/// - breaking
request property
/was restricted to a list of enum values - warning
removed the request property
/// - warning
removed the request property
/// - info
the
request property default valuepaypal_paymentswas removed - info
added the new
paypal_paymentsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking