Skip to content

Commit

Permalink
bux fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ravirocx committed Apr 17, 2018
1 parent 03675af commit bfe329c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gringotts/gateways/pin_payments.ex
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,15 @@ defmodule Gringotts.Gateways.PinPayments do
month: 12,
verification_code: "999",
brand: "VISA"}
iex> money = Money.new(10000, :USD)
iex> money = Money.new(10, :USD)
iex> authorization = auth_result.authorization
# authorization = "some_authorization_transaction_id"
iex> {:ok, capture_result} = Gringotts.capture(Gringotts.Gateways.PinPayments, amount, card, opts)
```
"""
@spec capture(String.t(), Money.t(), keyword) :: {:ok | :error, Response}
def capture(payment_id, amount, opts) do
url = @test_url <> "charges/" <> payment_id <> "/capture"
url = @test_url <> "charges/#{payment_id}/capture"
commit_short(:put, url, opts)
end

Expand Down

0 comments on commit bfe329c

Please sign in to comment.