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

Modified Examples to reflect new public Api #3

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Open

Conversation

arjun289
Copy link
Member

The following points are covered in this request.

  1. Changed the examples to call the api without explicitly passing :payment_worker.
  2. Changed the config for Authorize.Net to use snake case.

@arjun289 arjun289 requested review from ashish173 and oyeb December 28, 2017 15:56
@amount 20.00

def authorize() do
case Billing.authorize(AuthorizeNet, @amount, @card, @opts) do
Copy link
Contributor

Choose a reason for hiding this comment

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

The case block is not serving any purpose, and can be removed. This will make your functions consistent with those in other gateways too.

@@ -5,7 +5,7 @@ defmodule Gringotts.Examples.Mixfile do
[
app: :gringotts_examples,
version: "0.1.0",
elixir: "~> 1.5.2",
elixir: "~> 1.5.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

That's a very restrictive Version. I'm sure this will work with older versions of elixir too.
Gringotts has this elixir: >= 1.3.0
@pkrawat1: Need help with choosing/testing against versions.

Copy link
Member

Choose a reason for hiding this comment

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

@oyeb yes, we have to support almost all widely used versions have to spend some time on it. Testing is easier on travis. they support multiple version testing AFAIK.

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.

3 participants