Completes the payment authorization with a result.
- Safari Desktop 10.0+
- Safari Mobile 10.0+
- Apple Pay JS
The result of the payment authorization, including its status and list of errors. See
Pay Payment Authorization Result
This method must be called by
completePayment in Apple Pay JS API version 1 and 2
The parameter for
complete in versions 1 and 2 is the following:
The status of the payment, whether it succeeded or failed. See Apple Pay Status Codes.
The Apple Pay payment sheet is dismissed when this method is called with a status value of
STATUS. Other status values display an error on the payment sheet to prompt the user to update the information and authenticate again.