Tap-Payments / gosellSDK-Flutter

Flutter plugin for goSellSDK
MIT License
11 stars 24 forks source link

App Crash when call `GoSellSdkFlutter.startPaymentSDK` #34

Closed omarsherifs closed 2 years ago

omarsherifs commented 2 years ago

I'm trying to use this plugin in my project but it's throwing an exception when GoSellSdkFlutter.startPaymentSDK is called to get the payment result:

exception :

E/MethodChannel#go_sell_sdk_flutter(22822): Failed to handle method call
E/MethodChannel#go_sell_sdk_flutter(22822): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference

used version go_sell_sdk_flutter: ^2.0.6

YahyaYousef commented 2 years ago

any update? @tappayments @kareem5 @olamonir @halaq @sadbar-khattak

kareemTap commented 2 years ago

@omarsherifs @YahyaYousef Are you still facing the same issue in release 2.0.9? Are you able to see the number of line in the crash logs?

omarsherifs commented 2 years ago

@kareemTap no I found out that there is a problem with SDK config and after a change to the right settings it worked.

also I have send a new pull request that solves an issue in the payment item can you check it?

YahyaYousef commented 2 years ago

@omarsherifs Can you tell me what was the issue? I'm still facing it

omarsherifs commented 2 years ago

the issue was each merchant or user should have:

  1. Registered App bundle Id in the tap system
  2. Valid Merchant Id linked with this bundle ids @YahyaYousef
YahyaYousef commented 2 years ago

@omarsherifs Did you mean this?

GoSellSdkFlutter.configureApp(
        bundleId: 'com.myBundleID',
        productionSecreteKey: 'productionSecreteKeyForMyBundleID',
        sandBoxsecretKey: 'sandBoxsecretKeyForMyBundleID',
        lang: 'en',
      );
omarsherifs commented 2 years ago

yes @YahyaYousef