#yasmin-green_error
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ 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.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ 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/1324822656519766076
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
This is the plugin I am using FYI https://github.com/capacitor-community/stripe/tree/main/packages/terminal#readme
Hello, one thing that sticks out to me is that pi_****_secret_**** is what we typically call a client secret, typically calls with a paymentIntent parameter are expecting the intent's ID, which is very similar to the secret but doesn't have the _secret_*** part at the end
Can you try again with just the ID and see if the call succeeds then?
Hi, thank you for your response. I have tried with just the pi_*** and that gets the same error.
Can you send me the ID of a request where you tried the ID and got that error? (req_123)
Can find it in your logs https://dashboard.stripe.com/test/logs
Sure, this is the req id for creating the payment intent req_7MwvqoSO6UGJIz
Then this is the retrieve one by the looks of it req_CxG40jofY1EyaU.
I don't have any logs for the collect part
I think what the capacitor plugin is doing is using the pi_****_secret_**** value to call retrievePaymentIntent. This succeeds, but then maybe it's calling collect with the incorrect value?
This is the code from the plugin in StripeTerminal.swift -> https://github.com/capacitor-community/stripe/blob/main/packages/terminal/ios/Sources/StripeTerminalPlugin/StripeTerminal.swift#L201
Ah it looks like that error may be a client side error.
https://github.com/stripe/stripe-terminal-ios/blob/ac540cc5/docs/3.6.0/Enums/SCPError.html#L1277
I think you will need to report this as a bug to the plugin's developers. It looks like you are passing things correctly to me but because Stripe doesn't develop that plugin, we don't know much about it. They should be able to help you debug and fix this if this is a bug in the plugin