#cuperdino_api
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/1293587181394464859
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- cuperdino_api, 19 hours ago, 13 messages
Hello
Is calling update to update the amount resetting the selected payment method as well?
In order to update I need to pass along an IntentConfiguration, and I can't access the old intent configuration, meaning I must create a new one (IntentConfiguration is a struct, meaning value type, so I can't keep a reference to the first instance I created). And since I have to create a new one, the selected payment method isn't set of course
Hmm we describe the flow you're building here - https://docs.stripe.com/payments/accept-a-payment-deferred?platform=ios&type=payment&integration=paymentsheet-flowcontroller#update-payment-details
You should be able to retain old configuration reference and update it 🤔 (look at the example)
What payment method type do you have selected before you call update?
Link for example
It is likely forced/expected behavior. There are certain payment method types which get unselected by design. Can you try using a card payment method?
In our docs we outline it with just this sentence
https://docs.stripe.com/payments/accept-a-payment-deferred?platform=ios&type=payment&integration=paymentsheet-flowcontroller#update-payment-details:~:text=method” buttons).-,When,-the%20update%20completes
When the update completes, update your UI with the paymentOption property in case the customer’s previously selected payment method is no longer available. If the update failed, retry it.
Ok it seems to be working with cards
But the flow isn't ideal, I might have to discard the PaymentSheet.FlowController and just use the PaymentSheet
Gotcha. This is done to makes sure the correct values are shown in UI (for example, the pay button, the Apple Pay UI),
The example being, I select Apple Pay, I authorize $10 purchase but then the amount gets changed after I authorized a purchase
I'd need to authorize the payment again
this is mandated by Apple
I see, that makes sense
and prob is not limited to just Apple Pay