-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: dev
Are you sure you want to change the base?
Conversation
modified auth net example to use new api without payment worker. Changed config to use new key.
Modified example files for gateways to remove :payment_worker usage.
@amount 20.00 | ||
|
||
def authorize() do | ||
case Billing.authorize(AuthorizeNet, @amount, @card, @opts) do |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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.
The following points are covered in this request.
:payment_worker
.