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

The last amounts digit should be 0 for all currencies except JPY and OMR #14

Closed
dmitrii-fediuk opened this issue Nov 14, 2017 · 1 comment

Comments

@dmitrii-fediuk
Copy link
Member

dmitrii-fediuk commented Nov 14, 2017

1. Rónán Gallagher (AlphaCommerceHub):

I realised why non 3DS are not working. Westpac return a response code based on the minor unit of the amount.

If you ensure the minor amount is 00 then you should get a success based on a normal test card.

Please note the amount field is 14,3 to allow for some currencies like OMR that use 3 decimal places but for an amount in AUD etc there should be an extra zero at the end e.g. 10.99 would be sent at 10990. But to get a success in test system please use something like 10000. You sent 160706 so was considered as 160.70 or .71 and those in Westpac are error codes

In terms of alt payments again I was not aware of the scope. These configurations need to be added to the test account. I will request these

2. Me:

What is the exact list of currencies which require a zero at the end of amounts?
The documentation says nothing about it.

3. Rónán Gallagher (AlphaCommerceHub):

I don't know what documentation you received but it is called out in API Notes in AlphaHPP guide.

image

I don't know if the shopping cart has standards on currency exponents.
These are standard available in ISO currency tables.

4. Me:

I have seen this documentation section, but it mentions OMR and JPY only as examples.
Are OMR and JPY the only currencies which can have a non-zero last digit in the amounts, and all other currencies should have a zero at the end of amounts?

@dmitrii-fediuk
Copy link
Member Author

It looks like I misunderstood Rónán.
So this task is wrong.
The right task is #17: The last 3 digits of every payment amount should be «000» in the test mode for Westpac

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

No branches or pull requests

1 participant