#Ahad - Shipping Error

1 messages · Page 1 of 1 (latest)

vital viper
#

Hi 👋 Let me look into this for you.

static violet
#

Yes. Thanks.

vital viper
#

Do you have any request IDs for API requests that triggered this response?

static violet
#

let me check.

vital viper
#

Thanks

#

What is the context in which you are trying to change the shipping information on this Payment Intent?

static violet
#

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.

vital viper
#

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.

static violet
#

yes.

#

Exactly .

vital viper
#

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.

static violet
#

Let me show what i am passing.

#

Hello?

vital viper
#

Ah okay

#

Ans step 2 is carried out on the server? Not from the app?

static violet
#

Yes

#

I am posting this on server.

vital viper
#

It looks like the Shipping Info is still in the data payload when you try to confirm the payment intent.

#

You're adding a name and still including the shipping info.

static violet
#

What do you think this from server-side or client-side.

static violet
#

Hello, Snufkin thanks for your great help. I successfully complete my payment.

#

Now one more problem. How i can get user email id, Full shipping address to conform order in apple pay ios.