You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only problem is that the payment cannot be completed after the successful dismissal (See the issue below). Every time I try to complete the purchase, I receive the shipping dialogue..
I previously opened an issue for this subject, although the solution produced an error that doesn't not allow the user to complete the checkout process. #817
Ah, you're totally right, sorry about that! I was mistaken about my suggestion. You should instead not implement the paymentContext:didUpdateShippingAddress method (which is optional, and should only be used if you need to collect a shipping method – I'll make sure this is documented better).
To get the shipping information entered by the user from PaymentContext, you should instead use the STPPaymentContext instance's shippingAddress property after the payment completes, e.g. in paymentContext:didCreatePaymentResult:, where you could send the shipping information to your backend along with other information about the order.
The only problem is that the payment cannot be completed after the successful dismissal (See the issue below). Every time I try to complete the purchase, I receive the shipping dialogue..
I previously opened an issue for this subject, although the solution produced an error that doesn't not allow the user to complete the checkout process.
#817
The following code will produce the problem:
` func paymentContext(_ paymentContext: STPPaymentContext, didUpdateShippingAddress address: STPAddress, completion: @escaping STPShippingMethodsCompletionBlock) {
}`
The text was updated successfully, but these errors were encountered: