Post

Replies

Boosts

Views

Activity

Reply to [Apple Pay]how to update multiTokenContexts when PKPaymentRequestShippingContactUpdate method trigger
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.
Jan ’25
Reply to [Apple Pay]how to update multiTokenContexts when PKPaymentRequestShippingContactUpdate method trigger
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.
Jan ’25