Skip to content
This repository was archived by the owner on Jun 14, 2023. It is now read-only.
This repository was 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

@lvanlier

Description

@lvanlier

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions