#iOS-dev-payment-method

1 messages · Page 1 of 1 (latest)

open locust
#

Hi there!

vocal tide
#

Hello!!

open locust
#

Are you following a specific set of docs?

vocal tide
#

yes

open locust
#

It sounds like you aren't passing the client secret from your server to your client and then using that to confirm the PaymentIntent client-side.

vocal tide
#

I am sending paymentMethodID which i got after adding the card details to server and intentID which i got from my backed

open locust
#

Ah so you are just collecting payment method details client side but trying to complete the payment on your server?

#

Can you show me how you are creating your PaymentIntent server-side?

#

Recommend editing the above and removing your test API key

#

This is a public server so you should not share anything sensitive!

#

And can you provide the docs you are following for your integration?

#

Ah okay actually I see

#

So when you create the PaymentIntent, you aren't actually passing the PaymentMethod nor are you passing confirm: true

vocal tide
#

should I (means from iOS swift front end) or backend developer need to "confirm: true"

open locust
#

Backend

#

Everything looks fine on the frontend as long as you are passing the PaymentMethod ID to the backend

vocal tide
#

okay, thank you so much for your help