capacitor-community / stripe

Stripe Mobile SDK wrapper for Capacitor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Address Element so we can get shipping information

typefox09 opened this issue · comments

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

+1

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

This issue has been resolved by #315
I will close.