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

Use plugin without payment intent #131

Closed
LinnaeK opened this issue Dec 14, 2021 · 7 comments
Closed

Use plugin without payment intent #131

LinnaeK opened this issue Dec 14, 2021 · 7 comments

Comments

@LinnaeK
Copy link

LinnaeK commented Dec 14, 2021

We have Stripe set up for our web based product, and want to use this plugin to get around the requirement from ios for https protocol when using ApplePay with Capacitor. With our web based flow the client facing side gets a paymentMethod from stripe elements, and then submits that to our API to create the paymentIntent. The paymentIntent has to be created on the API side in order for us to store details regarding the transaction in our database. Is there a way I can use this plugin without creating the payment intent on the client facing side?

@hideokamoto
Copy link
Contributor

For now, the requirement of the plugin is getting client secrets from PaymentIntent, SetupIntent, or Subscription using our server.

@MordantWastrel
Copy link

Is there any intention in this plugin to support Elements?

We tried to keep our client-side operations to a minimum, thinking it would make it easier to support Apple Pay, Google Pay, etc. -- and that's true in every case except for Apple Pay since iOS doesn't like capacitor://. All we need from Elements is the ability to take card input and get a payment method ID from it.

This plugin is doing tons of cool stuff way more involved than that! Just curious whether supporting Elements is consistent iwth what the plugin is trying to do, or if we should go back to the drawing board.

@rdlabo
Copy link
Member

rdlabo commented Jan 7, 2022

Is there any intention in this plugin to support Elements?

This plugin supported https://github.com/stripe-elements/stripe-elements . This is created with Elements .

Or you can use Elements directly with if.
https://capacitorjs.com/docs/core-apis/web#getplatform

if (getPlatform() === 'web') {
  // 
}

Thanks.

@rdlabo
Copy link
Member

rdlabo commented Jan 19, 2022

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

@MordantWastrel
Copy link

I don't think we are as our business case is different than what you're trying to do.

@rdlabo
Copy link
Member

rdlabo commented Jan 19, 2022

@MordantWastrel Thanks for reply. OK, if you release an app that can be published, please let me know!

@rdlabo
Copy link
Member

rdlabo commented Jul 3, 2022

Has this problem been resolved? No action taken, so this Issue is closed. If you continue to have problems, please create a new Issue.

@rdlabo rdlabo closed this as completed Jul 3, 2022
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