I solved this problem and recorded it here so that other people who need it can use it as a solution.
First, you need to specify the initialized multiTokenContexts in the initialization. Then, because PKPaymentRequestShippingContact inherits PKPaymentRequestUpdate, because PKPaymentRequestUpdate has a multiTokenContexts public property. So we can manually change the multiTokenContexts property directly before updating the ShippingContact method init. In this way, even if the updated method does not provide a multiTokenContexts parameter update, it can recognize the updated multiTokenContexts.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I solved this problem and recorded it here so that other people who need it can use it as a solution.
First, you need to specify the initialized multiTokenContexts in the initialization. Then, because PKPaymentRequestShippingContact inherits PKPaymentRequestUpdate, because PKPaymentRequestUpdate has a multiTokenContexts public property. So we can manually change the multiTokenContexts property directly before updating the ShippingContact method init. In this way, even if the updated method does not provide a multiTokenContexts parameter update, it can recognize the updated multiTokenContexts.
Topic:
App & System Services
SubTopic:
Apple Pay
Tags: