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

iOS ApplePay Button returns error #8

Open
HappyCodingLover opened this issue Apr 16, 2021 · 3 comments
Open

iOS ApplePay Button returns error #8

HappyCodingLover opened this issue Apr 16, 2021 · 3 comments

Comments

@HappyCodingLover
Copy link

Hi
Thanks for this awesome library
I have issue with ios apple pay button.
When I try to apple pay, it returns error.
Screenshot_2
Anybody can help?

@glebtv
Copy link
Member

glebtv commented Apr 16, 2021

ISOCountryCode: "ru", - в документации было неправильно
И данные чека, вероятно, нужны, на вид на скриншоте упало на том что их нет:

    Items: order.line_items.map(item => ({
      Name: item.name || 'название товара',
      Price: item.price_cents,
      Quantity: item.count,
      Amount: item.sum_cents,
      Tax: 'none',
    }))

@HappyCodingLover
Copy link
Author

You are so great! Thanks!
I will star this repo. :)

@HappyCodingLover
Copy link
Author

But I am not facing another issue.
It opens applepay widget in simulator, but payment is not completed error occurs.
I tried on device, and not TinkoffASDK.isPayWithAppleAvailable() returns 0, which probably means failure.
But documentation doesn't give explanation about failing case.
Can you help me?

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