Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Provided example in README has paymentRequest.currency instead of paymentRequest.currencyCode #14

Open
lvanlier opened this issue Jul 5, 2021 · 1 comment

Comments

@lvanlier
Copy link

lvanlier commented Jul 5, 2021

As per the title.

Provided example in README has paymentRequest.currency instead of paymentRequest.currencyCode.
const paymentRequest = new PaymentRequest();
paymentRequest.amount = 2;
paymentRequest.currency = Currency.EUR; // should be paymentRequest.currencyCode = Currency.EUR
paymentRequest.orderChannel = OrderChannel.INTERNET;

When following the example in the README, the server responds with
The server respond with {"responseCode":"12","errorFieldName":"currency"}.

Correcting the example would be helpful.

Regards

@CrlH
Copy link
Collaborator

CrlH commented Jul 6, 2021

Thanks for pointing this out! I'll need to bump dependencies soon as well, will make the correction then. 👍

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

No branches or pull requests

2 participants