Completes the selection of a shipping method with an update.
- Safari Desktop 10.0+
- Safari Mobile 10.0+
- Apple Pay JS
This method must be called by
For Apple Pay JS API version 3, the parameter is an
completeShippingMethodSelection in Apple Pay JS API version 1 and 2
In Apple Pay JS API version 1 and 2,
complete has the following parameters:
Apple dictionary representing the total price for the purchase. Set the label to the merchant’s name, and the amount to the total price. The amount must be greater than zero.
Do not use line items to represent the individual items purchased by the user. Instead, combine all the purchases into a single subtotal item. Use additional line items to represent other costs or discounts (tax, shipping, coupons, and so forth.).
If you do not have any additional costs or discounts, do not use this argument. Set the
new argument with the total cost of all the purchased items, and either pass an empty array or null for