class Stripe::API

Defined in:

stripe/api.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def add_payment_method(type : String, billing_details : Hash(String, String) | Nil = nil, metadata : Hash(String, String) | Nil = nil, acss_debit : Hash(String, String) | Nil = nil, affirm : Hash(String, String) | Nil = nil, afterpay_clearpay : Hash(String, String) | Nil = nil, alipay : Hash(String, String) | Nil = nil, au_becs_debit : Hash(String, String) | Nil = nil, bacs_debit : Hash(String, String) | Nil = nil, bancontact : Hash(String, String) | Nil = nil, blik : Hash(String, String) | Nil = nil, boleto : Hash(String, String) | Nil = nil, card : Hash(String, String) | Nil = nil, customer_balance : Hash(String, String) | Nil = nil, eps : Hash(String, String) | Nil = nil, fpx : Hash(String, String) | Nil = nil, giropay : Hash(String, String) | Nil = nil, ideal : Hash(String, String) | Nil = nil, interac_present : Hash(String, String) | Nil = nil, klarna : Hash(String, String) | Nil = nil, konbini : Hash(String, String) | Nil = nil, link : Hash(String, String) | Nil = nil, oxxo : Hash(String, String) | Nil = nil, p24 : Hash(String, String) | Nil = nil, paynow : Hash(String, String) | Nil = nil, promptpay : Hash(String, String) | Nil = nil, radar_options : Hash(String, String) | Nil = nil, sepa_debit : Hash(String, String) | Nil = nil, sofort : Hash(String, String) | Nil = nil, us_bank_account : Hash(String, String) | Nil = nil, wechat_pay : Hash(String, String) | Nil = nil) #

[View source]
def cancel_payment_intent(id : String, cancellation_reason : String | Nil = nil) #

[View source]
def confirm_payment_intent(id : String, payment_method : String | Nil = nil, receipt_email : String | Nil = nil, setup_future_usage : String | Nil = nil, shipping : Hash(String, String) | Nil = nil, capture_method : String | Nil = nil, error_on_requires_action : Bool | Nil = nil, mandate : String | Nil = nil, mandate_data : Hash(String, String) | Nil = nil, off_session : Bool | Nil = nil, payment_method_data : Hash(String, String) | Nil = nil, payment_method_options : Hash(String, String) | Nil = nil, payment_method_types : Array(String) | Nil = nil, radar_options : Hash(String, String) | Nil = nil, return_url : String | Nil = nil, use_stripe_sdk : Bool | Nil = nil) #

[View source]
def create_customer(account_balance : Int32 | Nil = nil, coupon : String | Nil = nil, default_source : String | Nil = nil, description : String | Nil = nil, email : String | Nil = nil, invoice_prefix : String | Nil = nil, metadata : Hash(String, String) | Nil = nil, shipping : Hash(String, String) | Nil = nil, source : String | Nil = nil, tax_info : Hash(String, String) | Nil = nil) #

[View source]
def create_payment_intent(amount : Int32, currency : String, automatic_payment_methods : Hash(String, String) | Nil = nil, confirm : Bool | Nil = nil, customer : String | Nil = nil, description : String | Nil = nil, metadata : Hash(String, String) | Nil = nil, off_session : Bool | Nil = nil, payment_method : String | Nil = nil, receipt_email : String | Nil = nil, setup_future_usage : String | Nil = nil, shipping : Hash(String, String) | Nil = nil, statement_descriptor : String | Nil = nil, statement_descriptor_suffix : String | Nil = nil, application_fee_amount : Int32 | Nil = nil, capture_method : String | Nil = nil, confrimation_method : String | Nil = nil, error_on_requires_action : Bool | Nil = nil, mandate : String | Nil = nil, mandate_data : Hash(String, String) | Nil = nil, on_behalf_of : String | Nil = nil, payment_method_data : Hash(String, String) | Nil = nil, payment_method_types : Array(String) | Nil = nil, payment_method_options : Hash(String, String) | Nil = nil, radar_options : Hash(String, String) | Nil = nil, return_url : String | Nil = nil, transfer_data : Hash(String, String) | Nil = nil, transfer_group : String | Nil = nil, use_stripe_sdk : Bool | Nil = nil) #

[View source]
def get_customer(id : String) #

[View source]
def get_product_prices(active : Bool | Nil = nil, currency : String | Nil = nil, product : String | Nil = nil, type : String | Nil = nil, created : Hash(String, String) | Nil = nil, ending_before : String | Nil = nil, limit : Int32 | Nil = nil, lookup_keys : Array(String) | Nil = nil, recurring : Hash(String, String) | Nil = nil, starting_after : String | Nil = nil) #

[View source]
def list_customers(email : String | Nil = nil, created : Hash(String, String) | Nil = nil, ending_before : String | Nil = nil, limit : Int32 | Nil = nil, starting_after : String | Nil = nil) #

[View source]
def list_payment_methods(type : String, customer : String | Nil = nil, ending_before : String | Nil = nil, limit : Int32 | Nil = nil, starting_after : String | Nil = nil) #

[View source]
def on_load #

[View source]
def on_update #

[View source]
def search_customers(query : String, limit : Int32 | Nil = nil, page : Int32 | Nil = nil) #

[View source]
def update_customer(id : String, customer : String | Nil = nil, account_balance : Int32 | Nil = nil, coupon : String | Nil = nil, default_source : String | Nil = nil, description : String | Nil = nil, email : String | Nil = nil, invoice_prefix : String | Nil = nil, metadata : Hash(String, String) | Nil = nil, shipping : Hash(String, String) | Nil = nil, source : String | Nil = nil, tax_info : Hash(String, String) | Nil = nil) #

[View source]