capacitor-community / stripe

Stripe Mobile SDK wrapper for Capacitor
https://capacitor-community-stripe.netlify.app/
MIT License
197 stars 77 forks source link

Add Address Element so we can get shipping information #314

Closed typefox09 closed 8 months ago

typefox09 commented 1 year ago

Is your feature request related to a problem? Please describe. Currently there is no way to get a users shipping information with the current plugin (a very common use case).

It's not ideal for us to create the shipping address element on our own separately as a major win is to assign the return result from the address element to the payment sheet element. This has the effect of adding the shipping details to the payment intent, and pre-filling billing address.

Describe the solution you'd like Add 2 new functions:

  1. A "present" function that calls Stripe's Address element.present
  2. Create a listener function for us to get the completed result from shipping address input

Describe alternatives you've considered Creating the address element on our own, separate to this plugin, however the down side is we can not assign the result to the payment sheet creation function.

Usage Product Usage in e-commerce related apps

matthewbecker1990 commented 1 year ago

+1

Not sure how people are able to use this plugin without this feature. Makes 1 click checkouts impossible.

rdlabo commented 8 months ago

This issue has been resolved by https://github.com/capacitor-community/stripe/pull/315 I will close.