PayHereLK / payhere-mobilesdk-flutter

PayHere Mobile SDK for Flutter
BSD 3-Clause "New" or "Revised" License
5 stars 14 forks source link

Unauthorized domain #20

Open Ahnaf16 opened 1 month ago

Ahnaf16 commented 1 month ago

I have done the Pre-requisites. But startPayment opens the bottom sheet and closes it immediately. and the onError is executed. One Time Payment Failed. Error: Unauthorized domain

I'm using Flutter SDK: 3.19.6 and Dart SDK: 3.3.4

full log:

D/AppCompatDelegate(28181): Checking for metadata for AppLocalesMetadataHolderService : Service not found
D/PayHereBaseActivity(28181): Session timer enabled
D/PayHereBaseActivity(28181): Session timer Restarted
W/epixel.cartuse(28181): Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
W/epixel.cartuse(28181): Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
W/BottomSheetBehavior(28181): Cannot set state: 5
D/CompatibilityChangeReporter(28181): Compat change id reported: 171228096; UID 10298; state: ENABLED
W/Glide   (28181): Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored
D/PayHereBaseActivity(28181): Session timer Restarted
D/PaymentMethodFragment(28181): Init Payment method call failed 
D/PayHereBaseActivity(28181): Session timer Stopped
azeimtiaz commented 1 month ago

I experienced this issue when the package name in AndroidManifest.xml was not the same as the one I had configured when whitelisting the App in the PayHere Merchant portal.