#phal0r - Mobile payment sheet, setup intents for sepa and sofort
1 messages · Page 1 of 1 (latest)
Hmm actually I don't think we support Sofort or SEPA Debit on PaymentSheet with SetupIntent based on https://github.com/stripe/stripe-ios/blob/master/CHANGELOG.md#2190-2021-10-18 for instance for our iOS SDK
Yes that sounds right ☝️
I checked out this guide: https://stripe.com/docs/payments/save-and-reuse?platform=ios&ui=payment-sheet
screenshots and code comments suggest, that it should work. So these are copy/paste errors?
Which code comments in particular are you referring to?
In step 3 it says in the code:
// Set `allowsDelayedPaymentMethods` to true if your business can handle payment
// methods that complete payment after a delay, like SEPA Debit and Sofort.
configuration.allowsDelayedPaymentMethods = true
and further below in step 3, there is a big grey info box, explaining allowsDelayedPaymentMethods and how payment is delayed for these methods
Gotcha, i see, and yes it looks like those are generally possible for setup intents and future usage:
https://stripe.com/docs/payments/payment-methods/integration-options#additional-api-bank-debits
https://stripe.com/docs/payments/payment-methods/integration-options#additional-api-bank-redirects
That seems to be the latest update regarding those payment methods, but I'm looking for more info
phal0r - Mobile payment sheet, setup intents for sepa and sofort
ok, thx
If it is not possible via PaymentSheet, what is the intended way to collect payment data for iban, sofort and other delayed methods in a mobile app. I would appreciate any hints into this direction.
Yea as far as i can tell that a limitation of current payment sheet support
You can see these instead: https://stripe.com/docs/payments/sofort/set-up-payment?platform=ios
https://stripe.com/docs/payments/sepa-debit/set-up-payment
ok, if I understand correctly, it is only possible with the javascript sdk
Is this correct?
Hmm the sofort docs do include IOS specific guides, so you can review that
I'm looking again for sepa, that seems unexpected
true, but it works different. The "normal" in my understanding is to create the SetupIntent with the off_session mode, so we can trigger payments server side, which is necessary for our business case.
In step 6 of the sofort guide, one should take the payment method id from the last SetupIntent. Also SetupIntent is not created with off_session mode. So I am not sure, if it allows the same kind of usage.
Ok, i was able to at least confirm our conclusion about the payment sheet:
https://stripe.com/docs/payments/save-and-reuse?platform=ios&ui=payment-sheet#ios-add-server-endpoint
The mobile Payment Element only supports SetupIntents with cards.
While the sofort setup intent example does not use off session, you can set that for your use case
like initially described, we create the SetupIntent like so:
...
"payment_method_types": [
"card",
"sepa_debit",
"sofort"
],
"usage": "off_session"
...
but neither sofort nor sepa show up in the PaymentSheet
Correct, payment sheet does not currently support setup intents for those. You'd need to collect them separately.
ah, yeah
this is what the guides suggests, sorry
Edited above to be more precise, it doesnt support setup intents for those. You can use them for one time payment.
ok, so I can switch to the JS SDK to collect payment information and follow the according guides.
Now only the native PaymentSheet allows to trigger the scanning of credit cards with the ML model for detection. Can the scanning of credit cards be triggered separately without the PaymentSheet?
Since we develop a hybrid app I can use the JS SDK for the payment components and still have access to the native layer. So it would be cool if we would still be able to trigger this.
OK great -- for the card scanning bits I need ot step away but @rocky knot can give you a hand
@naive mesa Did you still need help?
yeah, would like to get @rocky knot s opinion on my question, if the credit card scanner can be used without PaymentSheet
Yes, I believe the Credit Card Scanner can be used with other components like the STPAddCardViewController, which is separate from the payment sheet
Is there any example, so I can check further?
I think the sample provided with the stripe-ios library may have an example: https://github.com/stripe/stripe-ios/blob/master/Example/UI Examples/UI Examples/BrowseViewController.swift
You can also look in our stripe-samples project (https://github.com/stripe-samples) and see if there's any examples there