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

Invalid value for PaymentRequest update() #5

Open
DarrenLumber opened this issue Dec 4, 2019 · 0 comments
Open

Invalid value for PaymentRequest update() #5

DarrenLumber opened this issue Dec 4, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@DarrenLumber
Copy link

Whilst attempting to update using window.payButton.refresh(); the JS console reports the following error:

1 Uncaught (in promise) IntegrationError: Invalid value for PaymentRequest update(): displayItems.1.amount should be an amount in the currency's subunit. You specified: 994.9999999999999.

I think the problem "item" is the shipping price which should be $9.95 and feels somewhat similar to issue #4

WebPayment 1.0.3
Craft Commerce 2.2.7
Craft CMS 3.3.15
PHP 7.3.1

@Tam Tam added the bug Something isn't working label Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants