Skip to content

Commit

Permalink
Add off_session field to PaymentIntent.create
Browse files Browse the repository at this point in the history
This enables specifying that the payment is occurring non-interactively.

(https://stripe.com/docs/api/payment_intents/create)
  • Loading branch information
dkulchenko committed Feb 18, 2020
1 parent 7b9c881 commit 877d9d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/stripe/core_resources/payment_intent.ex
Expand Up @@ -138,6 +138,7 @@ defmodule Stripe.PaymentIntent do
optional(:customer) => Stripe.id() | Stripe.Customer.t(),
optional(:description) => String.t(),
optional(:metadata) => map,
optional(:off_session) => boolean,
optional(:on_behalf_of) => Stripe.id() | Stripe.Account.t(),
optional(:payment_method) => String.t(),
optional(:payment_method_options) => map,
Expand Down

0 comments on commit 877d9d0

Please sign in to comment.