Process payment requests using the payment gateway endpoint.
If you support Apple Pay payment requests, you need to obtain the Apple Pay payment token from the customer's device. To receive this token, implement the payment gateway endpoint. Apple Pays calls this endpoint to send you the token and ask that you process the transaction. The URL to the endpoint must match the value in the paymentGatewayUrl field defined in the ApplePayEndpoints dictionary. For more information, see Sending an Apple Pay Payment Request.
The request body is a JSON dictionary with the following keys:
A dictionary containing payment information. For the list of payment dictionary keys, see Payment Dictionary.
An identifier for the request. Business Chat includes the identifier in its response to the CSP.
The version number of the message extension schema; the version should be 1.0.
payment dictionary keys are:
Sample Payment Gateway Request
After processing the payment, send a response with the transaction results and errors, if any. The body of the response is a JSON dictionary with the following fields: