When I use createPaymentFlow on the web, everything works perfectly. However, when I use it on Android, everything appears to work fine, and I get the cardNumber returned. But the card is not being added to my Stripe customer.
I've followed all the steps in the documentation, including configuring MainActivity.java, variables.gradle, and initializing Stripe.
Here are the package details:
"@capacitor-community/stripe": "^6.2.1",
"stripe-pwa-elements": "^2.1.0"
On the web, I can see requests being sent in the network console when I click the "Add" button, but no requests are being made on Android.
To Reproduce
await Stripe.createPaymentFlow({
setupIntentClientSecret: response["paymentIntentClientSecret"],
customerEphemeralKeySecret: response["ephemeralKeySecret"],
customerId: response["customerId"],
merchantDisplayName : "MerchantNameTest"
});
let result = await Stripe.presentPaymentFlow();
Platform
Describe the bug
Hello,
When I use createPaymentFlow on the web, everything works perfectly. However, when I use it on Android, everything appears to work fine, and I get the cardNumber returned. But the card is not being added to my Stripe customer.
I've followed all the steps in the documentation, including configuring MainActivity.java, variables.gradle, and initializing Stripe.
Here are the package details: "@capacitor-community/stripe": "^6.2.1", "stripe-pwa-elements": "^2.1.0"
On the web, I can see requests being sent in the network console when I click the "Add" button, but no requests are being made on Android.
To Reproduce
Expected behavior
Add new card into stripe with android app
Using Function: