Skip to content

Commit

Permalink
Accept capture_method param
Browse files Browse the repository at this point in the history
  • Loading branch information
nkezhaya committed Oct 18, 2019
1 parent af9026d commit 192b24a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/stripe_mock/api/payment_intent.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ defmodule StripeMock.API.PaymentIntent do
payment_intent
|> cast(attrs, [
:amount,
:capture_method,
:confirm,
:confirmation_method,
:currency,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ defmodule StripeMockWeb.PaymentIntentControllerTest do
assert %{
"id" => id,
"amount" => 5000,
"capture_method" => "manual",
"confirmation_method" => "manual",
"currency" => "some currency",
"customer" => _,
"description" => "some description",
Expand Down Expand Up @@ -119,7 +121,8 @@ defmodule StripeMockWeb.PaymentIntentControllerTest do
def create_attrs() do
%{
amount: 5000,
capture: true,
capture_method: "manual",
confirmation_method: "manual",
currency: "some currency",
description: "some description",
metadata: %{},
Expand Down

0 comments on commit 192b24a

Please sign in to comment.