RazerMS / Mobile-XDK-RazerMS_Flutter_Beta

Razer Merchant Services mobile payment for Flutter (Dart)
https://merchant.razer.com/v3/
14 stars 2 forks source link

Payment page crashed on Android showing mp_currency value not found #11

Open alifhaikal88 opened 3 years ago

alifhaikal88 commented 3 years ago

Versions Flutter version : 2.0.1 rms-mobile-xdk-flutter-beta : 0.29.1

Description This issue only occurs when using android phone. Iphone working fine. The payment page throws error "mp_currency value not found" when to pay Below is the screenshot of the error. Please clarify on this matter.

image

wasddsaw commented 3 years ago

Hi @alifhaikal88, please revert your issue to our support support-sa@razer.com

hisyamadzha commented 3 years ago

Hi @alifhaikal88, This is caused by android shrinking mechanism (R8), you may include below script in your project proguard-rules.pro file to resolve this issue.

-keep public class com.molpay.molpayxdk.MOLPayActivity {
    <fields>;
    public <methods>;
}
faiz-faizal commented 3 years ago

Hi @alifhaikal88, This is caused by android shrinking mechanism (R8), you may include below script in your project proguard-rules.pro file to resolve this issue.

-keep public class com.molpay.molpayxdk.MOLPayActivity {
    <fields>;
    public <methods>;
}

Thanks. its work For extra info: https://stackoverflow.com/questions/65020651/cant-find-proguard-rules-pro-in-my-flutter-app