capacitor-community / stripe

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

Doesn't work on android #298

Closed SandroBeatz closed 8 months ago

SandroBeatz commented 10 months ago

Platform

Hi, guys! Please could you help me, on android does not open stripe paymentSheet. Sends out the message "PaymentSheetFailed" and that's it. At the same time, everything works perfectly on iOS. What could be the problem?

This is how I call the stripe in my method:

Screenshot 2023-08-01 at 15 39 15

Here is a screenshot with logs from android studio:

Screenshot 2023-08-01 at 15 42 02

Packages used in the project:

Screenshot 2023-08-01 at 15 47 26

MainActivity.java

Screenshot 2023-08-01 at 15 54 37

variables.gradle

Screenshot 2023-08-01 at 15 54 56

Using Function:

rdlabo commented 10 months ago

@SandroBeatz Thanks for the report. This is mostly caused by a mismatch in publishableKey or SecretKey. We have confirmed that the plugin itself works fine, so please check the keys again.

DiscoDurodeRoer commented 10 months ago

@SandroBeatz You must pass propety "merchantDisplayName" in createPaymentSheet

rdlabo commented 8 months ago

This Issue is closed because there is no activity. If you still have problems, please create a new Issue.