Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(web): Create Web Components with Stripe Elements #79

Closed
rdlabo opened this issue Jul 14, 2021 · 7 comments
Closed

feat(web): Create Web Components with Stripe Elements #79

rdlabo opened this issue Jul 14, 2021 · 7 comments

Comments

@rdlabo
Copy link
Member

rdlabo commented Jul 14, 2021

iOS and Android can use "Payment Sheet" from Stripe SDK. But web sdk has only Stripe Elements. So we must create this plugin UI using Stripe Element, if this plugin provide to web platform.

This is working on this repository:
https://github.com/stripe-elements/stripe-elements

Will like https://capacitorjs.com/docs/web/pwa-elements

@rdlabo rdlabo changed the title feat(web): Stripe Elements created by Web Components feat(web): Stripe Elements create with Web Components Jul 15, 2021
@DwieDima
Copy link

When paying, or saving card for future payments, some credit cards require a code verification (3d secure validation).
With stripe elements, an iframe of the bank provider was opened in this case.
Is this something that is also taken into account when implementing the stencil component?

@rdlabo
Copy link
Member Author

rdlabo commented Jul 15, 2021

@DwieDima Will yes. But this element will be simple UI like iOS or Android. So if you want to customize original UI, you should implement your UI using Stripe Elements.

Thanks.

@DwieDima
Copy link

DwieDima commented Jul 15, 2021

@rdlabo Oh, I see. The stencil component will have no stripe integration, but is only responsible for collecting the required card information, right?

I see the problem here as stripe elements uses hosted fields and the entered credit card information can't be read by the developer in the frontend either (hosted fields with secure connection to stripe). This has the background of SCA compliance, which is mandatory in Europe.

Therefore, credit card information is never sent directly unencrypted to stripe or even the developers own backend (which shouldn't be done anyway).

what i want to point out is, if this stencil component does not provide an option for hosted fields and the credit card information can be read and is used directly on the client side, this component cannot be used in Europe.

@rdlabo rdlabo changed the title feat(web): Stripe Elements create with Web Components feat(web): Create Web Components with Stripe Elements Jul 15, 2021
@hideokamoto
Copy link
Contributor

The component is just a wrapper of Stripe.js and Stripe Element.
https://stripe.com/docs/stripe-js

We need to provide a card element as a function to render the component like PaymentSheet in iOS.
So we are planning to create a template using Stripe.js and Stripe Element and Stencil.
Never mind, we will not create input elements to collect card information without using Stripe Element.

@hideokamoto
Copy link
Contributor

https://github.com/stripe-elements/stripe-elements

@rdlabo rdlabo closed this as completed Jul 24, 2021
@rdlabo
Copy link
Member Author

rdlabo commented Jan 19, 2022

@DwieDima Did you adapt this plugin for production? If yes, please tell us what app. Please help us to develop this plugin in 2022.
#145
Thanks.

@MerlinOfCode
Copy link

yea dont even waste your time with these clowns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants