Apple Pay standalone button
With this integration, businesses can add the Apple Pay button anywhere on their website. A request will be sent to a PayComet endpoint, which will return the HTML and JavaScript code for the button, allowing direct integration into the site.
Requirements
It can be requested by communicating through the control panel.
Use
The endpoint to request the payment button is https://rest.paycomet.com/v1/payments/applepaybutton The parameters are the same as for a regular payment with any other payment method, without needing iduser or tokenuser, adding three additional parameters for the button's design:
{
"terminal": 1234,
"language": "ES",
"operationType": 1,
"payment": {
"terminal": 6987,
"methodId":1,
"originalIp":"1.1.1.1",
"amount": 1020,
"order": "paymentreference",
"currency": "EUR",
"secure": 1,
"productDescription": "Lorem Ips.",
"userInteraction": 1,
"width": 15,
"height": 100,
"color": "white"
}
}
The full description is available here.
Back