mohammeddawida / moyasar_payment

Flutter library for Moyasar. Supports Apple Pay, STC Pay and Credit Card.
https://pub.dev/packages/moyasar_payment
MIT License
13 stars 7 forks source link

Unhandled Exception: LateInitializationError: Field 'source' has not been initialized. #12

Open asmjalal opened 1 year ago

asmjalal commented 1 year ago

When i try to call below method i get this error.

PayModel res = await MoyasarPayment().stcPay( amount: 100.0, phoneNumber: '', publishableKey: "test_key" description: 'description');

mohammeddawida commented 1 year ago

@asmjalal What is the error message?

asmjalal commented 1 year ago

@asmjalal What is the error message?

Unhandled Exception: LateInitializationError: Field 'source' has not been initialized.

mahboob000 commented 1 year ago

@asmjalal What is the error message? "Validation failed" i'm continuously getting this message.