class Stripetease::API::PaymentIntents

Overview

This is an object representing your Stripe balance. You can retrieve it to see the balance currently on your Stripe account.

Defined in:

stripetease/api/payment_intents.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(session : Session) #

[View source]

Instance Method Detail

def cancel(id : String, cancellation_reason : String | Nil = nil) #

A PaymentIntent object can be canceled when it is in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action, or processing.


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

Confirm that your customer intends to pay with current or provided payment method. Upon confirmation, the PaymentIntent will attempt to initiate a payment.


[View source]
def create(amount : Int32, currency : String, automatic_payment_methods : Hash | Nil = nil, confirm : Bool | Nil = nil, customer : String | Nil = nil, description : String | Nil = nil, metadata : Hash | 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 | 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 | Nil = nil, on_behalf_of : String | Nil = nil, payment_method_data : Hash | Nil = nil, payment_method_types : Array(String) | Nil = nil, payment_method_options : Hash | Nil = nil, radar_options : Hash | Nil = nil, return_url : String | Nil = nil, transfer_data : Hash | Nil = nil, transfer_group : String | Nil = nil, use_stripe_sdk : Bool | Nil = nil) #

Retrieves the current account balance, based on the authentication that was used to make the request.


[View source]