#Ahad - Shipping Error
1 messages · Page 1 of 1 (latest)
Yes. Thanks.
Do you have any request IDs for API requests that triggered this response?
let me check.
Thanks
What is the context in which you are trying to change the shipping information on this Payment Intent?
i am using apple pay on ios. First i am creating intent before loading apple pay sheet and second on the basis of the user-selected address i am going to calculate the shipping cost. to update shipping costs i get the new shipping tex at that area. then i am pressing apple pay button to complete payments.
Ah. Okay all changes to the Payment Intent will need to occur server-side using the secret key, rather than the Publishable Key that is includes in the client app.
So i found the request. You cannot pass shipping information on the API call to confirm the payment intent.
In that case you would need to make an Update request first before confirming the Payment Intent.
It looks like the Shipping Info is still in the data payload when you try to confirm the payment intent.
See here is the server side request to update the intent: https://dashboard.stripe.com/test/logs/req_JM14lmjKbEQi21
And then here's the one from the iOS app: https://dashboard.stripe.com/test/logs/req_vrn5PeLsk18zHy
You're adding a name and still including the shipping info.
What do you think this from server-side or client-side.