class Stripe::PaymentIntent
- Stripe::PaymentIntent
- Reference
- Object
Included Modules
- JSON::Serializable
- StripeMethods
Defined in:
stripe/methods/core/payment_intents/confirm_payment_intent.crstripe/methods/core/payment_intents/create_payment_intent.cr
stripe/objects/core/payment_intent.cr
Constructors
- .confirm(intent : String | PaymentIntent | Nil = nil, payment_method : String | Token | PaymentMethods::Card | PaymentMethods::BankAccount | Nil = nil, receipt_email : String | Nil = nil, return_url : String | Nil = nil) : PaymentIntent forall T, U
- .create(amount : Int32, currency : String, confirm : Bool | Nil = nil, customer : String | Stripe::Customer | Nil = nil, description : String | Nil = nil, metadata : Hash(String, String) | Nil = nil, on_behalf_of : String | Nil = nil, usage : String | Nil = nil, payment_method : String | Token | PaymentMethods::Card | PaymentMethods::BankAccount | Nil = nil, return_url : String | Nil = nil, payment_method_types : Array(String) | Nil = nil, receipt_email : String | Nil = nil, setup_future_usage : String | Nil = nil, transfer_group : String | Nil = nil, capture_method : String | Nil = nil, expand : Array(String) | Nil = nil) : PaymentIntent forall T, U
- .new(pull : JSON::PullParser)
Class Method Summary
- .list(customer : String | Nil = nil, limit : Int32 | Nil = nil, starting_after : String | Nil = nil, ending_before : String | Nil = nil) : List(Stripe::PaymentIntent)
- .retrieve(id : String)
- .retrieve(paymentintent : Stripe::PaymentIntent)
Instance Method Summary
- #application : String | Nil
- #cancellation_reason : String | Nil
- #client_secret : String | Nil
- #created : Time | Nil
- #customer : String | Nil
- #description : String | Nil
- #id : String
- #last_setup_error : Hash(String, String | PaymentMethods::Card | PaymentMethods::BankAccount) | Nil
- #livemode : Bool
- #metadata : Hash(String, String) | Nil
- #payment_method : String | Nil
- #payment_method_types : Array(String) | Nil
- #status : Status | Nil
- #usage : String | Nil
Constructor Detail
def self.confirm(intent : String | PaymentIntent | Nil = nil, payment_method : String | Token | PaymentMethods::Card | PaymentMethods::BankAccount | Nil = nil, receipt_email : String | Nil = nil, return_url : String | Nil = nil) : PaymentIntent forall T, U
#
def self.create(amount : Int32, currency : String, confirm : Bool | Nil = nil, customer : String | Stripe::Customer | Nil = nil, description : String | Nil = nil, metadata : Hash(String, String) | Nil = nil, on_behalf_of : String | Nil = nil, usage : String | Nil = nil, payment_method : String | Token | PaymentMethods::Card | PaymentMethods::BankAccount | Nil = nil, return_url : String | Nil = nil, payment_method_types : Array(String) | Nil = nil, receipt_email : String | Nil = nil, setup_future_usage : String | Nil = nil, transfer_group : String | Nil = nil, capture_method : String | Nil = nil, expand : Array(String) | Nil = nil) : PaymentIntent forall T, U
#
Class Method Detail
def self.list(customer : String | Nil = nil, limit : Int32 | Nil = nil, starting_after : String | Nil = nil, ending_before : String | Nil = nil) : List(Stripe::PaymentIntent)
#
Instance Method Detail
def last_setup_error : Hash(String, String | PaymentMethods::Card | PaymentMethods::BankAccount) | Nil
#