capacitor-community / stripe

Stripe Mobile SDK wrapper for Capacitor
MIT License
184 stars 75 forks source link

Add Address Element so we can get shipping information #314

Closed typefox09 closed 3 months ago

typefox09 commented 7 months 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 7 months ago

+1

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

rdlabo commented 3 months ago

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