#avery_code

1 messages ¡ Page 1 of 1 (latest)

jagged quartzBOT
#

👋 Welcome to your new thread!

⏱️ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1212477124422664302

📝 Have more to share? You can add more detail below, including code, screenshots, videos, etc.

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question. Thank you for your patience!

valid boughBOT
thorny python
#

Hi, we're taking a look here

spiral ether
#

TY

#

Just seems like there is no information on the iOS side compared to Android

turbid ledge
#

Hello! I'm taking over and catching up...

#

Can you tell me more about what you're trying to do? Why do you want the client secret?

spiral ether
#
  1. Create Payment Intent
  2. Convert it to JSON
  3. Store it in JSON
  4. I want to collectPaymentIntent now
  5. Oh no it's a JSON and I lost the original object
  6. Oh I have the clientSecret, oh wait no I don't so I can't call retrievePaymentIntent
  7. Sad
turbid ledge
#

Where is #1 happening? On your server or on device?

spiral ether
#

Device

#

I could createPaymentIntent on server to go around this but I feel the clientSecret should be returned on iOS

#

I don't have much information about the payment intent

turbid ledge
#

We don't make the client secret available on iOS. If you need it you can fetch it from the API using your server and relay the info to the device. If you don't know the Payment Intent ID you can list Payment Intents: https://docs.stripe.com/api/payment_intents/list

spiral ether
#

Is there a reason?

#

iOS SDK seems kinda useless besides just collecting and confirming

turbid ledge
#

I'm sure there is, but I don't know the reason.

spiral ether
#

Okay so just don't use the createPaymentIntent

#

And do it on the server

turbid ledge
#

That's what I would recommend, yeah.

spiral ether
#

oof okay

#

Thanks

turbid ledge
#

Happy to help!