Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong Number of paramters #2

Closed
AhmedAbogameel opened this issue Jul 27, 2022 · 3 comments
Closed

Wrong Number of paramters #2

AhmedAbogameel opened this issue Jul 27, 2022 · 3 comments

Comments

@AhmedAbogameel
Copy link

I'm facing issue testing apple pay the message of the following code is "Wrong Number of paramters"
i can not understand what does that mean and what paramters it means?

PayModel res = await _moyasarPayment.applePay(
      amount: amount,
      publishableKey: _publishableKey,
      applepayMerchantId: _applePayMerchantID,
      paymentItems: {'Service Cost' : amount, 'Total Cost': amount},
      currencyCode: 'SAR',
      countryCode: 'SA',
      description: 'Paying for a service with apple pay.',
    );
@mohammeddawida
Copy link
Owner

Can you put the value of the sent amount?

@AhmedAbogameel
Copy link
Author

Can you put the value of the sent amount?

1000.0

@mohammeddawida
Copy link
Owner

A positive integer in the smallest currency unit (e.g., 100 cents to charge an amount of $1.00, 100 halalah to charge an amount of 1 SAR, or 1 to charge an amount of ¥1, a 0-decimal currency) representing how much to charge the card. The minimum amount is $0.50 (or equivalent in charge currency).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants