Stripe::Checkout::Session
Inherits StripeMethods / JSON::Serializable / Reference / Object
https://stripe.com/docs/api/checkout/sessions/create
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
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) | NamedTuple(quantity: Int32, price_data: NamedTuple(currency: String, product_data: NamedTuple(name: String) | Nil, unit_amount: Int32 | Nil, unit_amount_decimal: String | Nil, recurring: NamedTuple(interval: String, interval_count: Int32 | Nil) | Nil, tax_behavior: String | Nil))) | 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, billing_address_collection : Stripe::Checkout::Session::BillingAddressCollection | Nil = nil, automatic_tax : NamedTuple(enabled: Bool) | Nil = nil, phone_number_collection : NamedTuple(enabled: Bool) | Nil = nil, shipping_address_collection : NamedTuple(allowed_countries: Array(String)) | Nil = nil, shipping_options : Array(NamedTuple(shipping_rate: String)) | Nil = nil, submit_type : Stripe::Checkout::Session::SubmitType | Nil = nil, tax_id_collection : NamedTuple(enabled: Bool) | Nil = nil, expires_at : Time | Nil = nil, ui_mode : String | Nil = nil, return_url : String | Nil = nil, redirect_on_completion : String | Nil = nil, customer_update : NamedTuple | Nil = nil, customer_creation : String | NamedTuple | Nil = nil, invoice_creation : NamedTuple | Nil = nil, payment_method_collection : String | Nil = nil, payment_method_configuration : String | Nil = nil, payment_method_options : NamedTuple | Nil = nil, consent_collection : NamedTuple | Nil = nil, custom_fields : Array(NamedTuple) | Nil = nil, custom_text : NamedTuple | Nil = nil, after_expiration : NamedTuple | Nil = nil) : Stripe::Checkout::Session
Sourceexpire(id : String | Stripe::Checkout::Session, expand : Array(String) | Nil = nil) : Stripe::Checkout::Session
Sourceline_items(id : String | Stripe::Checkout::Session, limit : Int32 | Nil = nil, starting_after : String | Nil = nil, ending_before : String | Nil = nil) : List(Stripe::Checkout::LineItem)
Sourcelist(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)
Sourceretrieve(id : String)
Sourceretrieve(checkout_session : Stripe::Checkout::Session)
Sourceupdate(id : String | Stripe::Checkout::Session, metadata : Hash(String, String) | Nil = nil, expand : Array(String) | Nil = nil) : Stripe::Checkout::Session
SourceInstance methods
adaptive_pricing
Sourceallow_promotion_codes
Sourceamount_subtotal
Sourceamount_total
Sourceautomatic_tax
Sourcebilling_address_collection
Sourcecancel_url
Sourceclient_reference_id
Sourceconsent
Sourceconsent_collection
Sourcecurrency
Sourcecustom_fields
Sourcecustom_text
Sourcecustomer
Sourcecustomer_creation
Sourcecustomer_details
Sourcecustomer_email
Sourceexpires_at
Sourceid
Sourceinvoice
Sourceinvoice_creation
Sourceline_items
Sourcelivemode
Sourcemetadata
Sourcemode
Sourceobject
Sourcepayment_intent
Sourcepayment_intent_data
Sourcepayment_link
Sourcepayment_method_collection
Sourcepayment_method_configuration
Sourcepayment_method_options
Sourcepayment_method_types
Sourcepayment_status
Sourcephone_number_collection
Sourcerecovered_from
Sourcereturn_url
Sourcesetup_intent
Sourceshipping
Sourceshipping_address_collection
Sourceshipping_cost
Sourceshipping_details
Sourceshipping_options
Sourcestatus
Sourcesubmit_type
Sourcesubscription
Sourcesuccess_url
Sourcetax_id_collection
Sourcetotal_details
Sourceui_mode
Sourceurl
Source