Apple Pay standalone button
With this integration, the merchant will be able to incorporate the ApplePay payment button anywhere on their website. A request will be made to a PAYCOMET endpoint that will return the HTML and JS code of the button to integrate it directly into the site.
Requirements
It is necessary to inform PAYCOMET about the domains under which it will be used so that it can be activated in the product.
Under the indicated domains, the following file must be hosted apple-developer-merchantid-domain-association at the path: https://[DOMAIN]/.well-known/apple-developer-merchantid-domain-association
Example: https://api.paycomet.com/.well-known/apple-developer-merchantid-domain-association
If your merchant domain were myonlinestore.com, the file must be available at the url:
https://myonlinestore.com/.well-known/apple-developer-merchantid-domain-association returning the content of the file with an http 200 code
Once hosted and accessible in the corresponding domains, PAYCOMET will be informed of the list of domains to proceed with the ApplePay configuration.
PAYCOMET will confirm to the client when everything is configured so that they can start operating with ApplePay.
The file must not be downloaded nor should any redirection be made; the content must always be available so that Apple can verify that your domain can use ApplePay.
It can be requested by communicating through the control panel.
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 the need for iduser or tokenuser, adding three additional parameters for the button design:
width (%)
height (%)
color ("white","white-outline","black")
and the domain through which the payment is being made
domain
{
"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",
"domain": "www.paycomet.com"
}
}
The full description is available here.
Back