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

Money Integration with Authorize.Net #82

Merged
merged 1 commit into from
Jan 21, 2018
Merged

Money Integration with Authorize.Net #82

merged 1 commit into from
Jan 21, 2018

Conversation

arjun289
Copy link
Member

Used Gringotts.Money to check for money params.
Added doc for Authorize Net currency support.
Currently, I have to convert Decimal to a lossy float because a string amount is not accepted by the Authorize.Net lib. Will raise an issue with Authorize.Net regarding this.

Copy link
Contributor

@oyeb oyeb left a comment

Choose a reason for hiding this comment

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

Could you also run the code formatter on all ANet files in this PR?

@@ -23,8 +23,7 @@ defmodule Gringotts.Gateways.AuthorizeNetTest do
verification_code: 123
}

@amount 20
@bad_amount "a"
@amount %{value: Decimal.new(20.0), currency: 'USD'}
Copy link
Contributor

Choose a reason for hiding this comment

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

Use double quotes for strings: "USD".

Used Gringotts.Money to check for money params. Added doc
for Authorize Net currency support.
Modified the test amount value and some tests to
accomodate Gringotts.Money integration. Also modified add_amount
function to check the amount for nil.
@pkrawat1 pkrawat1 merged commit ce7c6bd into dev Jan 21, 2018
@pkrawat1 pkrawat1 deleted the anet-currency branch January 21, 2018 18:22
pkrawat1 pushed a commit that referenced this pull request Jan 25, 2018
Used Gringotts.Money for Authorize Net currency support.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants