#kppro
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Hi thanks
We generatlly encourage to use Stripe PaymentSheet, however, you can also integrate a Card Element: https://stripe.com/docs/payments/accept-a-payment?platform=ios&ui=custom
the card element doesn't seems highly customizable like the screenshot
I do not think I can achieve the same result with the card element, can I ?
also with the card element it seems I can access the user entered data in the fields
so it means even if the sdk give us access to the card data that the user entered we are still PCI compliant because we use the Stripe Card Element and we "say" in good faith I do not send this to my server or store it elsewhere ?
How would you have access to card data?
like this ?
if let cardTextField = MySTPPaymentCardTextField {
cardParams.number = cardTextField.cardNumber
cardParams.expMonth = cardTextField.expirationMonth
cardParams.expYear = cardTextField.expirationYear
cardParams.cvc = cardTextField.cvc
}
You shouldn't be able to do that. Does it work for you?
ok so we are not supposed to be able to access this. From what I recall when we test CardElement yes we were able to do that, that is why we didn't use it at that time
to stay PCI compliant
I will try to reproduce again to confirm this
regarding the other question, if CardElement is the only way to have a custom Stripe form, is it customizable (because I don't see options in the doc about this) ? like to be able to do the form on the screenshot
or is the final look only like the one on the documentation for ios & android
You can't separate the fields unfortunately.
You could instead use WebView and use Payment Element for the web.
interesting. thanks. I guess the other app I screenshot as an example which state powered by Stripe, is doing is or maybe not caring about being PCI Compliant and just use their form
thanks for the information. I am satisfied with my care !
I will investigate again the card element when I can. Have a good day 🙂
Happy to help!