capacitor-community / stripe

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

Add support for getting billing info from Google Pay #280

Closed krisloekkegaard closed 1 year ago

krisloekkegaard commented 1 year ago

Added metadata options to specify what, if any, billing info to require from Google Pay. Add the following entries to strings.xml in the Android project to enable additional data:

<bool name="email_address_required">true</bool>
<bool name="phone_number_required">true</bool>
<bool name="billing_address_required">true</bool>
<string name="billing_address_format">Full</string>

Billing address format can be set to Full or Min. If the metadata properties are omitted, the data will simply not be requested (same as current plugin behavior).

netlify[bot] commented 1 year ago

Deploy Preview for capacitor-community-stripe ready!

Name Link
Latest commit 6e01d6b10bbb5d0c65b9385b63084e340fd20052
Latest deploy log https://app.netlify.com/sites/capacitor-community-stripe/deploys/642704ee0c530500089ed090
Deploy Preview https://deploy-preview-280--capacitor-community-stripe.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

krisloekkegaard commented 1 year ago

@rdlabo When you get a chance, it would be great if this could be merged. Or if you have comments/concerns, let me know 👍

rdlabo commented 1 year ago

@krisloekkegaard Hi, thanks for great work. looks perfect! I will merge.

rdlabo commented 1 year ago

Released: https://github.com/capacitor-community/stripe/releases/tag/v4.2.2

And updated docs. Thanks!