class Stripe::Checkout::Session
- Stripe::Checkout::Session
- Reference
- Object
Overview
https://stripe.com/docs/api/checkout/sessions/create
Included Modules
- JSON::Serializable
- StripeMethods
Defined in:
stripe/methods/core/checkout/sessions/create_session.crstripe/objects/core/checkout/session.cr
Constructors
Class Method Summary
- .create(mode : String | Stripe::Checkout::Session::Mode, payment_method_types : Array(String), cancel_url : String, success_url : String, client_reference_id : String | Nil = nil, customer : String | Nil | Stripe::Customer | Nil = nil, customer_email : String | Nil = nil, line_items : Array(NamedTuple(quantity: Int32, price: String)) | Nil = nil, expand : Array(String) | Nil = nil, subscription_data : NamedTuple(metadata: Hash(String, String) | Nil) | Nil = nil, allow_promotion_codes : Bool | Nil = nil, metadata : Hash(String, String) | Nil = nil, discounts : Array(NamedTuple(coupon: String) | NamedTuple(promotion_code: String)) | Nil = nil, payment_intent_data : Hash(String, String) | Nil = nil) : Stripe::Checkout::Session
- .list(payment_intent : String | Nil | Stripe::PaymentIntent | Nil = nil, subscription : String | Nil | Stripe::Subscription | Nil = nil, limit : Int32 | Nil = nil, starting_after : String | Nil = nil, ending_before : String | Nil = nil) : List(Stripe::Checkout::Session)
- .retrieve(id : String)
- .retrieve(checkout_session : Stripe::Checkout::Session)
Instance Method Summary
- #allow_promotion_codes : Bool | Nil
- #amount_subtotal : Int32 | Nil
- #amount_total : Int32 | Nil
- #billing_address_collection : BillingAddressCollection | Nil
- #cancel_url : String
- #client_reference_id : String | Nil
- #currency : String | Nil
- #customer : String | Nil | Stripe::Customer | Nil
- #customer_email : String | Nil
- #id : String
- #line_items : Array(Hash(String, String | Int32)) | Nil
- #livemode : Bool | Nil
- #metadata : Hash(String, String) | Nil
- #mode : String | Mode
- #object : String | Nil
- #payment_intent : String | Nil | Stripe::PaymentIntent | Nil
- #payment_intent_data : Hash(String, String) | Nil
- #payment_method_types : Array(String)
- #payment_status : PaymentStatus
- #setup_intent : String | Nil | Stripe::SetupIntent | Nil
- #shipping : Hash(String, String | Hash(String, String)) | Nil
- #shipping_address_collection : Hash(String, Array(String)) | Nil
- #submit_type : SubmitType | Nil
- #subscription : String | Nil | Stripe::Subscription | Nil
- #success_url : String
Constructor Detail
Class Method Detail
def self.create(mode : String | Stripe::Checkout::Session::Mode, payment_method_types : Array(String), cancel_url : String, success_url : String, client_reference_id : String | Nil = nil, customer : String | Nil | Stripe::Customer | Nil = nil, customer_email : String | Nil = nil, line_items : Array(NamedTuple(quantity: Int32, price: String)) | Nil = nil, expand : Array(String) | Nil = nil, subscription_data : NamedTuple(metadata: Hash(String, String) | Nil) | Nil = nil, allow_promotion_codes : Bool | Nil = nil, metadata : Hash(String, String) | Nil = nil, discounts : Array(NamedTuple(coupon: String) | NamedTuple(promotion_code: String)) | Nil = nil, payment_intent_data : Hash(String, String) | Nil = nil) : Stripe::Checkout::Session
#
def self.list(payment_intent : String | Nil | Stripe::PaymentIntent | Nil = nil, subscription : String | Nil | Stripe::Subscription | Nil = nil, limit : Int32 | Nil = nil, starting_after : String | Nil = nil, ending_before : String | Nil = nil) : List(Stripe::Checkout::Session)
#