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

Credorax: Update non-standard currencies list #3499

Conversation

chinhle23-zz
Copy link
Contributor

ECS-978

Per Credorax's latest API docs,
their zero-decimal and three-decimal currencies list have changed:

  • Add BIF, DJF, GNF, KMF, RWF, VUV, XAF, XOF, & XPF to the currencies_without_fractions
    list
  • Add IQD & LYD and remove RSD from the currencies_with_three_decimal_places
    list

Some remote tests may fail due to Credorax's remote server timing out, thus
not related to these updates. The specific tests failing or error'ing may
change with each run.

Unit:
63 tests, 301 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Remote:
40 tests, 147 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

@chinhle23-zz chinhle23-zz requested a review from a team January 14, 2020 14:56
@chinhle23-zz chinhle23-zz force-pushed the ECS-978_credorax_update_non_standard_currencies branch from cb53e6c to 4774c70 Compare January 14, 2020 15:00
Copy link
Contributor

@britth britth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Tests pass for me and the list of zero and three decimal currencies looks as expected based on docs :shipit:

stub_comms do
@gateway.authorize(200, @credit_card, @options.merge(currency: 'JPY'))
end.check_request do |endpoint, data, headers|
p data
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yikes, thanks for catching that!

@chinhle23-zz chinhle23-zz force-pushed the ECS-978_credorax_update_non_standard_currencies branch from 4774c70 to d688e90 Compare January 14, 2020 18:09
ECS-978

Per Credorax's latest [API docs](https://epower.credorax.com/wp-content/uploads/2019/11/Credorax-Source-Payment-API-Specifications-v1.3-.pdf),
their zero-decimal and three-decimal currencies list have changed:
- Add BIF, DJF, GNF, KMF, RWF, VUV, XAF, XOF, & XPF to the `currencies_without_fractions`
  list
- Add IQD & LYD and remove RSD from the `currencies_with_three_decimal_places`
  list

Some remote tests may fail due to Credorax's remote server timing out, thus
not related to these updates. The specific tests failing or error'ing may
change with each run.

Unit:
63 tests, 301 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Remote:
40 tests, 147 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
@chinhle23-zz chinhle23-zz force-pushed the ECS-978_credorax_update_non_standard_currencies branch from d688e90 to 661ecd7 Compare January 14, 2020 18:18
@chinhle23-zz chinhle23-zz merged commit 661ecd7 into activemerchant:master Jan 14, 2020
@chinhle23-zz chinhle23-zz deleted the ECS-978_credorax_update_non_standard_currencies branch January 14, 2020 20:54
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

Successfully merging this pull request may close these issues.

None yet

2 participants