---
title: completeShippingContactSelection
framework: applepayontheweb
role: symbol
role_heading: Instance Method
path: applepayontheweb/applepaysession/completeshippingcontactselection
---

# completeShippingContactSelection

Completes the selection of a shipping contact with an update.

## Declaration

```data
undefined completeShippingContactSelection(
	unsigned short,
	ApplePayLineItem newTotal,
	sequence<ApplePayLineItem> newLineItems
);
```

## Mentioned in

Apple Pay on the Web Version 3 Release Notes

## Discussion

Discussion This method must be called by onshippingcontactselected. In Apple Pay JS API version 3, the parameter is an ApplePayShippingContactUpdate. completeShippingContactSelection in Apple Pay JS version 1 and 2 In version 1 and 2 of the Apple Pay JS API, completeShippingContactSelection has the following parameters:  |   |   |   |

## See Also

### Related Documentation

- [supportsVersion](applepayontheweb/applepaysession/supportsversion.md)

### Handling shipping contact updates

- [onshippingcontactselected](applepayontheweb/applepaysession/onshippingcontactselected.md)
- [ApplePayShippingContactSelectedEvent](applepayontheweb/applepayshippingcontactselectedevent.md)
- [ApplePayShippingContactUpdate](applepayontheweb/applepayshippingcontactupdate.md)
