Invalid Email Address - createPaymentMethod on Android
See original GitHub issueDescribe the bug When submitting the card details to Stripe using the createPaymentMethod function, an error is thrown. This is only happening on Android but is working fine on iOS.
async getPaymentMethod() {
let {cardholderName} = this.state;
let billingDetails = {
name: cardholderName,
};
return createPaymentMethod({
type: 'Card',
billingDetails,
}).then(result => {
if (result.error) {
throw result.error;
}
return result.paymentMethod;
});
}
To Reproduce Steps to reproduce the behavior:
- Copy the above code.
- Run on Android.
- Trigger the function by passing card details.
- See error
Expected behavior A payment method should be returned by Stripe but instead it is throwing an error.
Screenshots

Additional Information “@stripe/stripe-react-native”: “^0.2.3”, “react”: “17.0.2”, “react-native”: “0.66.0”,
If any further information is needed please comment and I will added it as soon as possible.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
createPaymentMethod - Stripe Developer Resources
Create a PaymentMethod from a coroutine. See Create a PaymentMethod. POST /v1/payment_methods. Return. a PaymentMethod object. Parameters.
Read more >Create a PaymentMethod – curl - Stripe API reference
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, ... billing_details.email optional. Email address.
Read more >How to create a Payment Method of type Card from Android ...
Assume you are using Stripe's CardInputWidget control? In this case, you would get the paymentMethodCreateParams from the widget like
Read more >Fix problems with subscriptions - Android - Google Play Help
Fix problems with paying for a subscription. If your payment method was lost, or stolen, or you got an email saying that your...
Read more >Xendit API Reference
Android SDK helps you to process digital payments using Xendit with features ... For example, the API servers might return a 401 if...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for posting your solution. This will work as a temporary fix but email and phone number should not be required for creating a payment method.
https://stripe.com/docs/api/payment_methods/create#create_payment_method-billing_details
Going to close this as a duplicate of https://github.com/stripe/stripe-react-native/issues/712