stripe 15.0.0 → 15.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/API_VERSION +1 -0
- data/CHANGELOG.md +129 -44
- data/CONTRIBUTING.md +25 -0
- data/Gemfile +1 -1
- data/OPENAPI_VERSION +1 -1
- data/README.md +28 -55
- data/VERSION +1 -1
- data/lib/stripe/api_operations/nested_resource.rb +35 -35
- data/lib/stripe/api_requestor.rb +1 -1
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/connection_manager.rb +1 -3
- data/lib/stripe/event_types.rb +1 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +1 -1
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +1 -1
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
- data/lib/stripe/oauth.rb +1 -1
- data/lib/stripe/resources/account.rb +198 -28
- data/lib/stripe/resources/account_session.rb +176 -72
- data/lib/stripe/resources/apple_pay_domain.rb +1 -2
- data/lib/stripe/resources/balance.rb +42 -0
- data/lib/stripe/resources/balance_transaction.rb +2 -0
- data/lib/stripe/resources/bank_account.rb +2 -2
- data/lib/stripe/resources/billing_portal/session.rb +3 -3
- data/lib/stripe/resources/capability.rb +1 -1
- data/lib/stripe/resources/charge.rb +43 -20
- data/lib/stripe/resources/checkout/session.rb +120 -19
- data/lib/stripe/resources/confirmation_token.rb +119 -100
- data/lib/stripe/resources/country_spec.rb +1 -1
- data/lib/stripe/resources/coupon.rb +2 -3
- data/lib/stripe/resources/credit_note.rb +21 -18
- data/lib/stripe/resources/customer.rb +4 -6
- data/lib/stripe/resources/customer_session.rb +5 -5
- data/lib/stripe/resources/dispute.rb +2 -2
- data/lib/stripe/resources/event.rb +3 -1
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/funding_instructions.rb +1 -1
- data/lib/stripe/resources/identity/verification_report.rb +6 -0
- data/lib/stripe/resources/identity/verification_session.rb +51 -11
- data/lib/stripe/resources/invoice.rb +146 -32
- data/lib/stripe/resources/invoice_item.rb +3 -7
- data/lib/stripe/resources/invoice_line_item.rb +1 -1
- data/lib/stripe/resources/invoice_payment.rb +9 -2
- data/lib/stripe/resources/issuing/authorization.rb +8 -8
- data/lib/stripe/resources/issuing/card.rb +1 -1
- data/lib/stripe/resources/issuing/dispute.rb +3 -3
- data/lib/stripe/resources/login_link.rb +2 -1
- data/lib/stripe/resources/mandate.rb +3 -0
- data/lib/stripe/resources/payment_intent.rb +602 -325
- data/lib/stripe/resources/payment_method.rb +76 -117
- data/lib/stripe/resources/payment_method_configuration.rb +356 -2
- data/lib/stripe/resources/payment_method_domain.rb +15 -2
- data/lib/stripe/resources/payout.rb +4 -4
- data/lib/stripe/resources/person.rb +27 -3
- data/lib/stripe/resources/plan.rb +2 -3
- data/lib/stripe/resources/price.rb +1 -1
- data/lib/stripe/resources/product.rb +1 -2
- data/lib/stripe/resources/quote.rb +28 -3
- data/lib/stripe/resources/radar/value_list.rb +1 -2
- data/lib/stripe/resources/radar/value_list_item.rb +1 -2
- data/lib/stripe/resources/refund.rb +8 -1
- data/lib/stripe/resources/reversal.rb +1 -1
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +414 -293
- data/lib/stripe/resources/source.rb +1 -1
- data/lib/stripe/resources/subscription.rb +149 -27
- data/lib/stripe/resources/subscription_item.rb +33 -0
- data/lib/stripe/resources/subscription_schedule.rb +141 -4
- data/lib/stripe/resources/tax/calculation.rb +6 -2
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/registration.rb +261 -1
- data/lib/stripe/resources/tax/transaction.rb +1 -1
- data/lib/stripe/resources/tax_id.rb +3 -4
- data/lib/stripe/resources/tax_rate.rb +2 -2
- data/lib/stripe/resources/terminal/configuration.rb +2 -2
- data/lib/stripe/resources/terminal/location.rb +2 -3
- data/lib/stripe/resources/terminal/reader.rb +426 -6
- data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
- data/lib/stripe/resources/token.rb +63 -2
- data/lib/stripe/resources/transfer.rb +1 -1
- data/lib/stripe/resources/treasury/financial_account.rb +5 -1
- data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +2 -2
- data/lib/stripe/resources/v2/event.rb +2 -2
- data/lib/stripe/resources/v2/event_destination.rb +2 -2
- data/lib/stripe/resources/webhook_endpoint.rb +1 -2
- data/lib/stripe/resources.rb +1 -0
- data/lib/stripe/services/account_external_account_service.rb +3 -4
- data/lib/stripe/services/account_login_link_service.rb +1 -1
- data/lib/stripe/services/account_person_service.rb +85 -2
- data/lib/stripe/services/account_service.rb +169 -20
- data/lib/stripe/services/account_session_service.rb +115 -47
- data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
- data/lib/stripe/services/application_fee_service.rb +1 -1
- data/lib/stripe/services/apps_service.rb +1 -1
- data/lib/stripe/services/balance_service.rb +1 -1
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal/session_service.rb +1 -1
- data/lib/stripe/services/billing_portal_service.rb +1 -1
- data/lib/stripe/services/billing_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +4 -4
- data/lib/stripe/services/checkout/session_service.rb +94 -15
- data/lib/stripe/services/checkout_service.rb +1 -1
- data/lib/stripe/services/climate_service.rb +1 -1
- data/lib/stripe/services/coupon_service.rb +1 -2
- data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -3
- data/lib/stripe/services/credit_note_service.rb +14 -15
- data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/customer_payment_method_service.rb +1 -1
- data/lib/stripe/services/customer_payment_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +5 -7
- data/lib/stripe/services/customer_session_service.rb +1 -1
- data/lib/stripe/services/customer_tax_id_service.rb +2 -3
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/entitlements_service.rb +1 -1
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/financial_connections/account_service.rb +1 -1
- data/lib/stripe/services/financial_connections_service.rb +1 -1
- data/lib/stripe/services/forwarding_service.rb +1 -1
- data/lib/stripe/services/identity/verification_session_service.rb +21 -5
- data/lib/stripe/services/identity_service.rb +1 -1
- data/lib/stripe/services/invoice_item_service.rb +1 -2
- data/lib/stripe/services/invoice_service.rb +122 -28
- data/lib/stripe/services/issuing/authorization_service.rb +4 -4
- data/lib/stripe/services/issuing/card_service.rb +1 -1
- data/lib/stripe/services/issuing/dispute_service.rb +2 -2
- data/lib/stripe/services/issuing_service.rb +1 -1
- data/lib/stripe/services/payment_intent_service.rb +563 -313
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_method_configuration_service.rb +254 -2
- data/lib/stripe/services/payment_method_domain_service.rb +1 -1
- data/lib/stripe/services/payment_method_service.rb +59 -105
- data/lib/stripe/services/payout_service.rb +2 -2
- data/lib/stripe/services/plan_service.rb +2 -3
- data/lib/stripe/services/price_service.rb +2 -2
- data/lib/stripe/services/product_feature_service.rb +1 -2
- data/lib/stripe/services/product_service.rb +3 -4
- data/lib/stripe/services/promotion_code_service.rb +1 -1
- data/lib/stripe/services/quote_service.rb +21 -4
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
- data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
- data/lib/stripe/services/radar/value_list_service.rb +1 -2
- data/lib/stripe/services/radar_service.rb +1 -1
- data/lib/stripe/services/reporting_service.rb +1 -1
- data/lib/stripe/services/setup_intent_service.rb +403 -291
- data/lib/stripe/services/sigma_service.rb +1 -1
- data/lib/stripe/services/source_service.rb +2 -2
- data/lib/stripe/services/subscription_item_service.rb +26 -0
- data/lib/stripe/services/subscription_schedule_service.rb +106 -3
- data/lib/stripe/services/subscription_service.rb +121 -26
- data/lib/stripe/services/tax/calculation_service.rb +6 -2
- data/lib/stripe/services/tax/registration_service.rb +170 -1
- data/lib/stripe/services/tax/transaction_service.rb +1 -1
- data/lib/stripe/services/tax_id_service.rb +2 -3
- data/lib/stripe/services/tax_service.rb +1 -1
- data/lib/stripe/services/terminal/configuration_service.rb +1 -2
- data/lib/stripe/services/terminal/location_service.rb +2 -3
- data/lib/stripe/services/terminal/reader_service.rb +196 -2
- data/lib/stripe/services/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +90 -91
- data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
- data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
- data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
- data/lib/stripe/services/test_helpers_service.rb +1 -1
- data/lib/stripe/services/token_service.rb +62 -1
- data/lib/stripe/services/transfer_service.rb +2 -2
- data/lib/stripe/services/treasury/financial_account_service.rb +6 -2
- data/lib/stripe/services/treasury_service.rb +1 -1
- data/lib/stripe/services/v1_services.rb +1 -1
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
- data/lib/stripe/services/v2/billing_service.rb +3 -3
- data/lib/stripe/services/v2/core/event_destination_service.rb +17 -23
- data/lib/stripe/services/v2/core/event_service.rb +1 -2
- data/lib/stripe/services/v2/core_service.rb +1 -1
- data/lib/stripe/services/v2_services.rb +1 -1
- data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -1
- data/rbi/stripe/resources/account.rbi +190 -35
- data/rbi/stripe/resources/account_session.rbi +196 -77
- data/rbi/stripe/resources/apple_pay_domain.rbi +1 -3
- data/rbi/stripe/resources/balance.rbi +55 -0
- data/rbi/stripe/resources/balance_transaction.rbi +3 -0
- data/rbi/stripe/resources/bank_account.rbi +2 -2
- data/rbi/stripe/resources/billing/alert.rbi +2 -2
- data/rbi/stripe/resources/billing_portal/session.rbi +3 -3
- data/rbi/stripe/resources/capability.rbi +1 -1
- data/rbi/stripe/resources/charge.rbi +52 -20
- data/rbi/stripe/resources/checkout/session.rbi +133 -24
- data/rbi/stripe/resources/confirmation_token.rbi +140 -115
- data/rbi/stripe/resources/country_spec.rbi +1 -1
- data/rbi/stripe/resources/coupon.rbi +2 -4
- data/rbi/stripe/resources/credit_note.rbi +23 -18
- data/rbi/stripe/resources/customer.rbi +4 -8
- data/rbi/stripe/resources/customer_session.rbi +5 -5
- data/rbi/stripe/resources/dispute.rbi +2 -2
- data/rbi/stripe/resources/event.rbi +4 -1
- data/rbi/stripe/resources/file.rbi +1 -1
- data/rbi/stripe/resources/identity/verification_report.rbi +9 -0
- data/rbi/stripe/resources/identity/verification_session.rbi +59 -12
- data/rbi/stripe/resources/invoice.rbi +149 -40
- data/rbi/stripe/resources/invoice_item.rbi +3 -8
- data/rbi/stripe/resources/invoice_line_item.rbi +2 -2
- data/rbi/stripe/resources/invoice_payment.rbi +9 -2
- data/rbi/stripe/resources/issuing/authorization.rbi +8 -8
- data/rbi/stripe/resources/issuing/card.rbi +1 -1
- data/rbi/stripe/resources/issuing/dispute.rbi +3 -3
- data/rbi/stripe/resources/login_link.rbi +2 -1
- data/rbi/stripe/resources/mandate.rbi +4 -0
- data/rbi/stripe/resources/payment_intent.rbi +637 -381
- data/rbi/stripe/resources/payment_method.rbi +81 -133
- data/rbi/stripe/resources/payment_method_configuration.rbi +400 -4
- data/rbi/stripe/resources/payment_method_domain.rbi +18 -2
- data/rbi/stripe/resources/payout.rbi +4 -4
- data/rbi/stripe/resources/person.rbi +33 -3
- data/rbi/stripe/resources/plan.rbi +2 -4
- data/rbi/stripe/resources/price.rbi +1 -1
- data/rbi/stripe/resources/product.rbi +1 -3
- data/rbi/stripe/resources/quote.rbi +25 -3
- data/rbi/stripe/resources/radar/value_list.rbi +1 -3
- data/rbi/stripe/resources/radar/value_list_item.rbi +1 -3
- data/rbi/stripe/resources/refund.rbi +8 -1
- data/rbi/stripe/resources/reversal.rbi +1 -1
- data/rbi/stripe/resources/review.rbi +1 -1
- data/rbi/stripe/resources/setup_attempt.rbi +1 -1
- data/rbi/stripe/resources/setup_intent.rbi +464 -346
- data/rbi/stripe/resources/source.rbi +1 -1
- data/rbi/stripe/resources/subscription.rbi +150 -34
- data/rbi/stripe/resources/subscription_item.rbi +36 -2
- data/rbi/stripe/resources/subscription_schedule.rbi +161 -11
- data/rbi/stripe/resources/tax/calculation.rbi +7 -3
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +4 -1
- data/rbi/stripe/resources/tax/registration.rbi +249 -2
- data/rbi/stripe/resources/tax/transaction.rbi +1 -1
- data/rbi/stripe/resources/tax_id.rbi +3 -5
- data/rbi/stripe/resources/tax_rate.rbi +2 -2
- data/rbi/stripe/resources/terminal/configuration.rbi +2 -3
- data/rbi/stripe/resources/terminal/location.rbi +4 -6
- data/rbi/stripe/resources/terminal/reader.rbi +415 -8
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +1 -3
- data/rbi/stripe/resources/token.rbi +70 -4
- data/rbi/stripe/resources/transfer.rbi +1 -1
- data/rbi/stripe/resources/treasury/financial_account.rbi +6 -2
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +3 -3
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +3 -3
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +3 -3
- data/rbi/stripe/resources/v2/event.rbi +3 -3
- data/rbi/stripe/resources/v2/event_destination.rbi +3 -3
- data/rbi/stripe/resources/webhook_endpoint.rbi +1 -3
- data/rbi/stripe/services/account_external_account_service.rbi +3 -5
- data/rbi/stripe/services/account_login_link_service.rbi +1 -1
- data/rbi/stripe/services/account_person_service.rbi +93 -5
- data/rbi/stripe/services/account_service.rbi +166 -28
- data/rbi/stripe/services/account_session_service.rbi +126 -52
- data/rbi/stripe/services/apple_pay_domain_service.rbi +1 -3
- data/rbi/stripe/services/balance_service.rbi +1 -1
- data/rbi/stripe/services/billing/alert_service.rbi +2 -2
- data/rbi/stripe/services/billing_portal/session_service.rbi +1 -1
- data/rbi/stripe/services/charge_service.rbi +4 -4
- data/rbi/stripe/services/checkout/session_service.rbi +104 -19
- data/rbi/stripe/services/coupon_service.rbi +1 -3
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +3 -3
- data/rbi/stripe/services/credit_note_service.rbi +13 -14
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +3 -3
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +2 -2
- data/rbi/stripe/services/customer_payment_method_service.rbi +1 -1
- data/rbi/stripe/services/customer_payment_source_service.rbi +1 -1
- data/rbi/stripe/services/customer_service.rbi +4 -8
- data/rbi/stripe/services/customer_session_service.rbi +1 -1
- data/rbi/stripe/services/customer_tax_id_service.rbi +2 -4
- data/rbi/stripe/services/dispute_service.rbi +1 -1
- data/rbi/stripe/services/file_service.rbi +1 -1
- data/rbi/stripe/services/identity/verification_session_service.rbi +22 -6
- data/rbi/stripe/services/invoice_item_service.rbi +1 -3
- data/rbi/stripe/services/invoice_service.rbi +126 -35
- data/rbi/stripe/services/issuing/authorization_service.rbi +4 -4
- data/rbi/stripe/services/issuing/card_service.rbi +1 -1
- data/rbi/stripe/services/issuing/dispute_service.rbi +2 -2
- data/rbi/stripe/services/payment_intent_service.rbi +599 -369
- data/rbi/stripe/services/payment_method_configuration_service.rbi +280 -4
- data/rbi/stripe/services/payment_method_domain_service.rbi +1 -1
- data/rbi/stripe/services/payment_method_service.rbi +62 -121
- data/rbi/stripe/services/payout_service.rbi +2 -2
- data/rbi/stripe/services/plan_service.rbi +2 -4
- data/rbi/stripe/services/price_service.rbi +2 -2
- data/rbi/stripe/services/product_feature_service.rbi +1 -3
- data/rbi/stripe/services/product_service.rbi +2 -4
- data/rbi/stripe/services/promotion_code_service.rbi +1 -1
- data/rbi/stripe/services/quote_service.rbi +16 -3
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +1 -1
- data/rbi/stripe/services/radar/value_list_item_service.rbi +1 -3
- data/rbi/stripe/services/radar/value_list_service.rbi +1 -3
- data/rbi/stripe/services/setup_intent_service.rbi +457 -344
- data/rbi/stripe/services/source_service.rbi +1 -1
- data/rbi/stripe/services/subscription_item_service.rbi +28 -2
- data/rbi/stripe/services/subscription_schedule_service.rbi +119 -10
- data/rbi/stripe/services/subscription_service.rbi +121 -33
- data/rbi/stripe/services/tax/calculation_service.rbi +6 -2
- data/rbi/stripe/services/tax/registration_service.rbi +171 -2
- data/rbi/stripe/services/tax_id_service.rbi +2 -4
- data/rbi/stripe/services/terminal/configuration_service.rbi +1 -3
- data/rbi/stripe/services/terminal/location_service.rbi +4 -6
- data/rbi/stripe/services/terminal/reader_service.rbi +200 -4
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +106 -106
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +31 -0
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +1 -3
- data/rbi/stripe/services/token_service.rbi +71 -3
- data/rbi/stripe/services/transfer_service.rbi +1 -1
- data/rbi/stripe/services/treasury/financial_account_service.rbi +6 -2
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +1 -3
- data/rbi/stripe/services/v2/billing_service.rbi +1 -1
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +14 -22
- data/rbi/stripe/services/v2/core/event_service.rbi +1 -3
- data/rbi/stripe/services/webhook_endpoint_service.rbi +1 -3
- metadata +5 -2
@@ -68,8 +68,7 @@ module Stripe
|
|
68
68
|
|
69
69
|
class MandateData < Stripe::RequestParams
|
70
70
|
class CustomerAcceptance < Stripe::RequestParams
|
71
|
-
class Offline < Stripe::RequestParams
|
72
|
-
end
|
71
|
+
class Offline < Stripe::RequestParams; end
|
73
72
|
|
74
73
|
class Online < Stripe::RequestParams
|
75
74
|
# The IP address from which the Mandate was accepted by the customer.
|
@@ -122,20 +121,11 @@ module Stripe
|
|
122
121
|
end
|
123
122
|
end
|
124
123
|
|
125
|
-
class Affirm < Stripe::RequestParams
|
126
|
-
end
|
127
|
-
|
128
|
-
class
|
129
|
-
end
|
130
|
-
|
131
|
-
class Alipay < Stripe::RequestParams
|
132
|
-
end
|
133
|
-
|
134
|
-
class Alma < Stripe::RequestParams
|
135
|
-
end
|
136
|
-
|
137
|
-
class AmazonPay < Stripe::RequestParams
|
138
|
-
end
|
124
|
+
class Affirm < Stripe::RequestParams; end
|
125
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
126
|
+
class Alipay < Stripe::RequestParams; end
|
127
|
+
class Alma < Stripe::RequestParams; end
|
128
|
+
class AmazonPay < Stripe::RequestParams; end
|
139
129
|
|
140
130
|
class AuBecsDebit < Stripe::RequestParams
|
141
131
|
# The account number for the bank account.
|
@@ -161,11 +151,8 @@ module Stripe
|
|
161
151
|
end
|
162
152
|
end
|
163
153
|
|
164
|
-
class Bancontact < Stripe::RequestParams
|
165
|
-
end
|
166
|
-
|
167
|
-
class Billie < Stripe::RequestParams
|
168
|
-
end
|
154
|
+
class Bancontact < Stripe::RequestParams; end
|
155
|
+
class Billie < Stripe::RequestParams; end
|
169
156
|
|
170
157
|
class BillingDetails < Stripe::RequestParams
|
171
158
|
class Address < Stripe::RequestParams
|
@@ -206,17 +193,19 @@ module Stripe
|
|
206
193
|
attr_accessor :name
|
207
194
|
# Billing phone number (including extension).
|
208
195
|
attr_accessor :phone
|
196
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
197
|
+
attr_accessor :tax_id
|
209
198
|
|
210
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
199
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
|
211
200
|
@address = address
|
212
201
|
@email = email
|
213
202
|
@name = name
|
214
203
|
@phone = phone
|
204
|
+
@tax_id = tax_id
|
215
205
|
end
|
216
206
|
end
|
217
207
|
|
218
|
-
class Blik < Stripe::RequestParams
|
219
|
-
end
|
208
|
+
class Blik < Stripe::RequestParams; end
|
220
209
|
|
221
210
|
class Boleto < Stripe::RequestParams
|
222
211
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -227,11 +216,9 @@ module Stripe
|
|
227
216
|
end
|
228
217
|
end
|
229
218
|
|
230
|
-
class Cashapp < Stripe::RequestParams
|
231
|
-
end
|
232
|
-
|
233
|
-
class CustomerBalance < Stripe::RequestParams
|
234
|
-
end
|
219
|
+
class Cashapp < Stripe::RequestParams; end
|
220
|
+
class Crypto < Stripe::RequestParams; end
|
221
|
+
class CustomerBalance < Stripe::RequestParams; end
|
235
222
|
|
236
223
|
class Eps < Stripe::RequestParams
|
237
224
|
# The customer's bank.
|
@@ -254,11 +241,8 @@ module Stripe
|
|
254
241
|
end
|
255
242
|
end
|
256
243
|
|
257
|
-
class Giropay < Stripe::RequestParams
|
258
|
-
end
|
259
|
-
|
260
|
-
class Grabpay < Stripe::RequestParams
|
261
|
-
end
|
244
|
+
class Giropay < Stripe::RequestParams; end
|
245
|
+
class Grabpay < Stripe::RequestParams; end
|
262
246
|
|
263
247
|
class Ideal < Stripe::RequestParams
|
264
248
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
@@ -269,11 +253,8 @@ module Stripe
|
|
269
253
|
end
|
270
254
|
end
|
271
255
|
|
272
|
-
class InteracPresent < Stripe::RequestParams
|
273
|
-
end
|
274
|
-
|
275
|
-
class KakaoPay < Stripe::RequestParams
|
276
|
-
end
|
256
|
+
class InteracPresent < Stripe::RequestParams; end
|
257
|
+
class KakaoPay < Stripe::RequestParams; end
|
277
258
|
|
278
259
|
class Klarna < Stripe::RequestParams
|
279
260
|
class Dob < Stripe::RequestParams
|
@@ -298,20 +279,11 @@ module Stripe
|
|
298
279
|
end
|
299
280
|
end
|
300
281
|
|
301
|
-
class Konbini < Stripe::RequestParams
|
302
|
-
end
|
303
|
-
|
304
|
-
class
|
305
|
-
end
|
306
|
-
|
307
|
-
class Link < Stripe::RequestParams
|
308
|
-
end
|
309
|
-
|
310
|
-
class Mobilepay < Stripe::RequestParams
|
311
|
-
end
|
312
|
-
|
313
|
-
class Multibanco < Stripe::RequestParams
|
314
|
-
end
|
282
|
+
class Konbini < Stripe::RequestParams; end
|
283
|
+
class KrCard < Stripe::RequestParams; end
|
284
|
+
class Link < Stripe::RequestParams; end
|
285
|
+
class Mobilepay < Stripe::RequestParams; end
|
286
|
+
class Multibanco < Stripe::RequestParams; end
|
315
287
|
|
316
288
|
class NaverPay < Stripe::RequestParams
|
317
289
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -353,8 +325,7 @@ module Stripe
|
|
353
325
|
end
|
354
326
|
end
|
355
327
|
|
356
|
-
class Oxxo < Stripe::RequestParams
|
357
|
-
end
|
328
|
+
class Oxxo < Stripe::RequestParams; end
|
358
329
|
|
359
330
|
class P24 < Stripe::RequestParams
|
360
331
|
# The customer's bank.
|
@@ -365,23 +336,12 @@ module Stripe
|
|
365
336
|
end
|
366
337
|
end
|
367
338
|
|
368
|
-
class PayByBank < Stripe::RequestParams
|
369
|
-
end
|
370
|
-
|
371
|
-
class
|
372
|
-
end
|
373
|
-
|
374
|
-
class Paynow < Stripe::RequestParams
|
375
|
-
end
|
376
|
-
|
377
|
-
class Paypal < Stripe::RequestParams
|
378
|
-
end
|
379
|
-
|
380
|
-
class Pix < Stripe::RequestParams
|
381
|
-
end
|
382
|
-
|
383
|
-
class Promptpay < Stripe::RequestParams
|
384
|
-
end
|
339
|
+
class PayByBank < Stripe::RequestParams; end
|
340
|
+
class Payco < Stripe::RequestParams; end
|
341
|
+
class Paynow < Stripe::RequestParams; end
|
342
|
+
class Paypal < Stripe::RequestParams; end
|
343
|
+
class Pix < Stripe::RequestParams; end
|
344
|
+
class Promptpay < Stripe::RequestParams; end
|
385
345
|
|
386
346
|
class RadarOptions < Stripe::RequestParams
|
387
347
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
@@ -392,14 +352,9 @@ module Stripe
|
|
392
352
|
end
|
393
353
|
end
|
394
354
|
|
395
|
-
class RevolutPay < Stripe::RequestParams
|
396
|
-
end
|
397
|
-
|
398
|
-
class SamsungPay < Stripe::RequestParams
|
399
|
-
end
|
400
|
-
|
401
|
-
class Satispay < Stripe::RequestParams
|
402
|
-
end
|
355
|
+
class RevolutPay < Stripe::RequestParams; end
|
356
|
+
class SamsungPay < Stripe::RequestParams; end
|
357
|
+
class Satispay < Stripe::RequestParams; end
|
403
358
|
|
404
359
|
class SepaDebit < Stripe::RequestParams
|
405
360
|
# IBAN of the bank account.
|
@@ -419,11 +374,8 @@ module Stripe
|
|
419
374
|
end
|
420
375
|
end
|
421
376
|
|
422
|
-
class Swish < Stripe::RequestParams
|
423
|
-
end
|
424
|
-
|
425
|
-
class Twint < Stripe::RequestParams
|
426
|
-
end
|
377
|
+
class Swish < Stripe::RequestParams; end
|
378
|
+
class Twint < Stripe::RequestParams; end
|
427
379
|
|
428
380
|
class UsBankAccount < Stripe::RequestParams
|
429
381
|
# Account holder type: individual or company.
|
@@ -452,11 +404,8 @@ module Stripe
|
|
452
404
|
end
|
453
405
|
end
|
454
406
|
|
455
|
-
class WechatPay < Stripe::RequestParams
|
456
|
-
end
|
457
|
-
|
458
|
-
class Zip < Stripe::RequestParams
|
459
|
-
end
|
407
|
+
class WechatPay < Stripe::RequestParams; end
|
408
|
+
class Zip < Stripe::RequestParams; end
|
460
409
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
461
410
|
attr_accessor :acss_debit
|
462
411
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -477,7 +426,7 @@ module Stripe
|
|
477
426
|
attr_accessor :bacs_debit
|
478
427
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
479
428
|
attr_accessor :bancontact
|
480
|
-
# If this is a `billie` PaymentMethod, this hash contains details about the
|
429
|
+
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
|
481
430
|
attr_accessor :billie
|
482
431
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
483
432
|
attr_accessor :billing_details
|
@@ -487,6 +436,8 @@ module Stripe
|
|
487
436
|
attr_accessor :boleto
|
488
437
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
489
438
|
attr_accessor :cashapp
|
439
|
+
# If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
|
440
|
+
attr_accessor :crypto
|
490
441
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
491
442
|
attr_accessor :customer_balance
|
492
443
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
@@ -539,11 +490,11 @@ module Stripe
|
|
539
490
|
attr_accessor :promptpay
|
540
491
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
541
492
|
attr_accessor :radar_options
|
542
|
-
# If this is a `
|
493
|
+
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
543
494
|
attr_accessor :revolut_pay
|
544
495
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
545
496
|
attr_accessor :samsung_pay
|
546
|
-
# If this is a `satispay` PaymentMethod, this hash contains details about the
|
497
|
+
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
|
547
498
|
attr_accessor :satispay
|
548
499
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
549
500
|
attr_accessor :sepa_debit
|
@@ -578,6 +529,7 @@ module Stripe
|
|
578
529
|
blik: nil,
|
579
530
|
boleto: nil,
|
580
531
|
cashapp: nil,
|
532
|
+
crypto: nil,
|
581
533
|
customer_balance: nil,
|
582
534
|
eps: nil,
|
583
535
|
fpx: nil,
|
@@ -631,6 +583,7 @@ module Stripe
|
|
631
583
|
@blik = blik
|
632
584
|
@boleto = boleto
|
633
585
|
@cashapp = cashapp
|
586
|
+
@crypto = crypto
|
634
587
|
@customer_balance = customer_balance
|
635
588
|
@eps = eps
|
636
589
|
@fpx = fpx
|
@@ -905,6 +858,19 @@ module Stripe
|
|
905
858
|
end
|
906
859
|
end
|
907
860
|
|
861
|
+
class Billie < Stripe::RequestParams
|
862
|
+
# Controls when the funds are captured from the customer's account.
|
863
|
+
#
|
864
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
865
|
+
#
|
866
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
867
|
+
attr_accessor :capture_method
|
868
|
+
|
869
|
+
def initialize(capture_method: nil)
|
870
|
+
@capture_method = capture_method
|
871
|
+
end
|
872
|
+
end
|
873
|
+
|
908
874
|
class Blik < Stripe::RequestParams
|
909
875
|
# The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
|
910
876
|
attr_accessor :code
|
@@ -953,7 +919,7 @@ module Stripe
|
|
953
919
|
# For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
|
954
920
|
# One of `month`.
|
955
921
|
attr_accessor :interval
|
956
|
-
# Type of installment plan, one of `fixed_count`.
|
922
|
+
# Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
|
957
923
|
attr_accessor :type
|
958
924
|
|
959
925
|
def initialize(count: nil, interval: nil, type: nil)
|
@@ -1231,6 +1197,23 @@ module Stripe
|
|
1231
1197
|
end
|
1232
1198
|
end
|
1233
1199
|
|
1200
|
+
class Crypto < Stripe::RequestParams
|
1201
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1202
|
+
#
|
1203
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
1204
|
+
#
|
1205
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
1206
|
+
#
|
1207
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
1208
|
+
#
|
1209
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
1210
|
+
attr_accessor :setup_future_usage
|
1211
|
+
|
1212
|
+
def initialize(setup_future_usage: nil)
|
1213
|
+
@setup_future_usage = setup_future_usage
|
1214
|
+
end
|
1215
|
+
end
|
1216
|
+
|
1234
1217
|
class CustomerBalance < Stripe::RequestParams
|
1235
1218
|
class BankTransfer < Stripe::RequestParams
|
1236
1219
|
class EuBankTransfer < Stripe::RequestParams
|
@@ -1363,8 +1346,7 @@ module Stripe
|
|
1363
1346
|
end
|
1364
1347
|
end
|
1365
1348
|
|
1366
|
-
class InteracPresent < Stripe::RequestParams
|
1367
|
-
end
|
1349
|
+
class InteracPresent < Stripe::RequestParams; end
|
1368
1350
|
|
1369
1351
|
class KakaoPay < Stripe::RequestParams
|
1370
1352
|
# Controls when the funds are captured from the customer's account.
|
@@ -1389,12 +1371,78 @@ module Stripe
|
|
1389
1371
|
end
|
1390
1372
|
|
1391
1373
|
class Klarna < Stripe::RequestParams
|
1374
|
+
class OnDemand < Stripe::RequestParams
|
1375
|
+
# Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
|
1376
|
+
attr_accessor :average_amount
|
1377
|
+
# The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
1378
|
+
attr_accessor :maximum_amount
|
1379
|
+
# The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
1380
|
+
attr_accessor :minimum_amount
|
1381
|
+
# Interval at which the customer is making purchases
|
1382
|
+
attr_accessor :purchase_interval
|
1383
|
+
# The number of `purchase_interval` between charges
|
1384
|
+
attr_accessor :purchase_interval_count
|
1385
|
+
|
1386
|
+
def initialize(
|
1387
|
+
average_amount: nil,
|
1388
|
+
maximum_amount: nil,
|
1389
|
+
minimum_amount: nil,
|
1390
|
+
purchase_interval: nil,
|
1391
|
+
purchase_interval_count: nil
|
1392
|
+
)
|
1393
|
+
@average_amount = average_amount
|
1394
|
+
@maximum_amount = maximum_amount
|
1395
|
+
@minimum_amount = minimum_amount
|
1396
|
+
@purchase_interval = purchase_interval
|
1397
|
+
@purchase_interval_count = purchase_interval_count
|
1398
|
+
end
|
1399
|
+
end
|
1400
|
+
|
1401
|
+
class Subscription < Stripe::RequestParams
|
1402
|
+
class NextBilling < Stripe::RequestParams
|
1403
|
+
# The amount of the next charge for the subscription.
|
1404
|
+
attr_accessor :amount
|
1405
|
+
# The date of the next charge for the subscription in YYYY-MM-DD format.
|
1406
|
+
attr_accessor :date
|
1407
|
+
|
1408
|
+
def initialize(amount: nil, date: nil)
|
1409
|
+
@amount = amount
|
1410
|
+
@date = date
|
1411
|
+
end
|
1412
|
+
end
|
1413
|
+
# Unit of time between subscription charges.
|
1414
|
+
attr_accessor :interval
|
1415
|
+
# The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
|
1416
|
+
attr_accessor :interval_count
|
1417
|
+
# Name for subscription.
|
1418
|
+
attr_accessor :name
|
1419
|
+
# Describes the upcoming charge for this subscription.
|
1420
|
+
attr_accessor :next_billing
|
1421
|
+
# A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
|
1422
|
+
attr_accessor :reference
|
1423
|
+
|
1424
|
+
def initialize(
|
1425
|
+
interval: nil,
|
1426
|
+
interval_count: nil,
|
1427
|
+
name: nil,
|
1428
|
+
next_billing: nil,
|
1429
|
+
reference: nil
|
1430
|
+
)
|
1431
|
+
@interval = interval
|
1432
|
+
@interval_count = interval_count
|
1433
|
+
@name = name
|
1434
|
+
@next_billing = next_billing
|
1435
|
+
@reference = reference
|
1436
|
+
end
|
1437
|
+
end
|
1392
1438
|
# Controls when the funds are captured from the customer's account.
|
1393
1439
|
#
|
1394
1440
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
1395
1441
|
#
|
1396
1442
|
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
1397
1443
|
attr_accessor :capture_method
|
1444
|
+
# On-demand details if setting up or charging an on-demand payment.
|
1445
|
+
attr_accessor :on_demand
|
1398
1446
|
# Preferred language of the Klarna authorization page that the customer is redirected to
|
1399
1447
|
attr_accessor :preferred_locale
|
1400
1448
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
@@ -1407,11 +1455,21 @@ module Stripe
|
|
1407
1455
|
#
|
1408
1456
|
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
1409
1457
|
attr_accessor :setup_future_usage
|
1458
|
+
# Subscription details if setting up or charging a subscription.
|
1459
|
+
attr_accessor :subscriptions
|
1410
1460
|
|
1411
|
-
def initialize(
|
1461
|
+
def initialize(
|
1462
|
+
capture_method: nil,
|
1463
|
+
on_demand: nil,
|
1464
|
+
preferred_locale: nil,
|
1465
|
+
setup_future_usage: nil,
|
1466
|
+
subscriptions: nil
|
1467
|
+
)
|
1412
1468
|
@capture_method = capture_method
|
1469
|
+
@on_demand = on_demand
|
1413
1470
|
@preferred_locale = preferred_locale
|
1414
1471
|
@setup_future_usage = setup_future_usage
|
1472
|
+
@subscriptions = subscriptions
|
1415
1473
|
end
|
1416
1474
|
end
|
1417
1475
|
|
@@ -1622,8 +1680,7 @@ module Stripe
|
|
1622
1680
|
end
|
1623
1681
|
end
|
1624
1682
|
|
1625
|
-
class PayByBank < Stripe::RequestParams
|
1626
|
-
end
|
1683
|
+
class PayByBank < Stripe::RequestParams; end
|
1627
1684
|
|
1628
1685
|
class Payco < Stripe::RequestParams
|
1629
1686
|
# Controls when the funds are captured from the customer's account.
|
@@ -1765,6 +1822,19 @@ module Stripe
|
|
1765
1822
|
end
|
1766
1823
|
end
|
1767
1824
|
|
1825
|
+
class Satispay < Stripe::RequestParams
|
1826
|
+
# Controls when the funds are captured from the customer's account.
|
1827
|
+
#
|
1828
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
1829
|
+
#
|
1830
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
1831
|
+
attr_accessor :capture_method
|
1832
|
+
|
1833
|
+
def initialize(capture_method: nil)
|
1834
|
+
@capture_method = capture_method
|
1835
|
+
end
|
1836
|
+
end
|
1837
|
+
|
1768
1838
|
class SepaDebit < Stripe::RequestParams
|
1769
1839
|
class MandateOptions < Stripe::RequestParams
|
1770
1840
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
@@ -1996,6 +2066,8 @@ module Stripe
|
|
1996
2066
|
attr_accessor :bacs_debit
|
1997
2067
|
# If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
|
1998
2068
|
attr_accessor :bancontact
|
2069
|
+
# If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
|
2070
|
+
attr_accessor :billie
|
1999
2071
|
# If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
|
2000
2072
|
attr_accessor :blik
|
2001
2073
|
# If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
|
@@ -2006,6 +2078,8 @@ module Stripe
|
|
2006
2078
|
attr_accessor :card_present
|
2007
2079
|
# If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
|
2008
2080
|
attr_accessor :cashapp
|
2081
|
+
# If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
|
2082
|
+
attr_accessor :crypto
|
2009
2083
|
# If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
|
2010
2084
|
attr_accessor :customer_balance
|
2011
2085
|
# If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
|
@@ -2058,6 +2132,8 @@ module Stripe
|
|
2058
2132
|
attr_accessor :revolut_pay
|
2059
2133
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
2060
2134
|
attr_accessor :samsung_pay
|
2135
|
+
# If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
|
2136
|
+
attr_accessor :satispay
|
2061
2137
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
2062
2138
|
attr_accessor :sepa_debit
|
2063
2139
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
@@ -2083,11 +2159,13 @@ module Stripe
|
|
2083
2159
|
au_becs_debit: nil,
|
2084
2160
|
bacs_debit: nil,
|
2085
2161
|
bancontact: nil,
|
2162
|
+
billie: nil,
|
2086
2163
|
blik: nil,
|
2087
2164
|
boleto: nil,
|
2088
2165
|
card: nil,
|
2089
2166
|
card_present: nil,
|
2090
2167
|
cashapp: nil,
|
2168
|
+
crypto: nil,
|
2091
2169
|
customer_balance: nil,
|
2092
2170
|
eps: nil,
|
2093
2171
|
fpx: nil,
|
@@ -2114,6 +2192,7 @@ module Stripe
|
|
2114
2192
|
promptpay: nil,
|
2115
2193
|
revolut_pay: nil,
|
2116
2194
|
samsung_pay: nil,
|
2195
|
+
satispay: nil,
|
2117
2196
|
sepa_debit: nil,
|
2118
2197
|
sofort: nil,
|
2119
2198
|
swish: nil,
|
@@ -2131,11 +2210,13 @@ module Stripe
|
|
2131
2210
|
@au_becs_debit = au_becs_debit
|
2132
2211
|
@bacs_debit = bacs_debit
|
2133
2212
|
@bancontact = bancontact
|
2213
|
+
@billie = billie
|
2134
2214
|
@blik = blik
|
2135
2215
|
@boleto = boleto
|
2136
2216
|
@card = card
|
2137
2217
|
@card_present = card_present
|
2138
2218
|
@cashapp = cashapp
|
2219
|
+
@crypto = crypto
|
2139
2220
|
@customer_balance = customer_balance
|
2140
2221
|
@eps = eps
|
2141
2222
|
@fpx = fpx
|
@@ -2162,6 +2243,7 @@ module Stripe
|
|
2162
2243
|
@promptpay = promptpay
|
2163
2244
|
@revolut_pay = revolut_pay
|
2164
2245
|
@samsung_pay = samsung_pay
|
2246
|
+
@satispay = satispay
|
2165
2247
|
@sepa_debit = sepa_debit
|
2166
2248
|
@sofort = sofort
|
2167
2249
|
@swish = swish
|
@@ -2295,6 +2377,8 @@ module Stripe
|
|
2295
2377
|
# ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods#compatibility) object) to attach to this PaymentIntent.
|
2296
2378
|
#
|
2297
2379
|
# If you don't provide the `payment_method` parameter or the `source` parameter with `confirm=true`, `source` automatically populates with `customer.default_source` to improve migration for users of the Charges API. We recommend that you explicitly provide the `payment_method` moving forward.
|
2380
|
+
# If the payment method is attached to a Customer, you must also provide the ID of that Customer as the [customer](https://stripe.com/docs/api#create_payment_intent-customer) parameter of this PaymentIntent.
|
2381
|
+
# end
|
2298
2382
|
attr_accessor :payment_method
|
2299
2383
|
# The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent.
|
2300
2384
|
attr_accessor :payment_method_configuration
|
@@ -2304,7 +2388,7 @@ module Stripe
|
|
2304
2388
|
attr_accessor :payment_method_data
|
2305
2389
|
# Payment method-specific configuration for this PaymentIntent.
|
2306
2390
|
attr_accessor :payment_method_options
|
2307
|
-
# The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
|
2391
|
+
# The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
2308
2392
|
attr_accessor :payment_method_types
|
2309
2393
|
# Options to configure Radar. Learn more about [Radar Sessions](https://stripe.com/docs/radar/radar-session).
|
2310
2394
|
attr_accessor :radar_options
|
@@ -2434,20 +2518,11 @@ module Stripe
|
|
2434
2518
|
end
|
2435
2519
|
end
|
2436
2520
|
|
2437
|
-
class Affirm < Stripe::RequestParams
|
2438
|
-
end
|
2439
|
-
|
2440
|
-
class
|
2441
|
-
end
|
2442
|
-
|
2443
|
-
class Alipay < Stripe::RequestParams
|
2444
|
-
end
|
2445
|
-
|
2446
|
-
class Alma < Stripe::RequestParams
|
2447
|
-
end
|
2448
|
-
|
2449
|
-
class AmazonPay < Stripe::RequestParams
|
2450
|
-
end
|
2521
|
+
class Affirm < Stripe::RequestParams; end
|
2522
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
2523
|
+
class Alipay < Stripe::RequestParams; end
|
2524
|
+
class Alma < Stripe::RequestParams; end
|
2525
|
+
class AmazonPay < Stripe::RequestParams; end
|
2451
2526
|
|
2452
2527
|
class AuBecsDebit < Stripe::RequestParams
|
2453
2528
|
# The account number for the bank account.
|
@@ -2473,11 +2548,8 @@ module Stripe
|
|
2473
2548
|
end
|
2474
2549
|
end
|
2475
2550
|
|
2476
|
-
class Bancontact < Stripe::RequestParams
|
2477
|
-
end
|
2478
|
-
|
2479
|
-
class Billie < Stripe::RequestParams
|
2480
|
-
end
|
2551
|
+
class Bancontact < Stripe::RequestParams; end
|
2552
|
+
class Billie < Stripe::RequestParams; end
|
2481
2553
|
|
2482
2554
|
class BillingDetails < Stripe::RequestParams
|
2483
2555
|
class Address < Stripe::RequestParams
|
@@ -2518,17 +2590,19 @@ module Stripe
|
|
2518
2590
|
attr_accessor :name
|
2519
2591
|
# Billing phone number (including extension).
|
2520
2592
|
attr_accessor :phone
|
2593
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
2594
|
+
attr_accessor :tax_id
|
2521
2595
|
|
2522
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
2596
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
|
2523
2597
|
@address = address
|
2524
2598
|
@email = email
|
2525
2599
|
@name = name
|
2526
2600
|
@phone = phone
|
2601
|
+
@tax_id = tax_id
|
2527
2602
|
end
|
2528
2603
|
end
|
2529
2604
|
|
2530
|
-
class Blik < Stripe::RequestParams
|
2531
|
-
end
|
2605
|
+
class Blik < Stripe::RequestParams; end
|
2532
2606
|
|
2533
2607
|
class Boleto < Stripe::RequestParams
|
2534
2608
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -2539,11 +2613,9 @@ module Stripe
|
|
2539
2613
|
end
|
2540
2614
|
end
|
2541
2615
|
|
2542
|
-
class Cashapp < Stripe::RequestParams
|
2543
|
-
end
|
2544
|
-
|
2545
|
-
class CustomerBalance < Stripe::RequestParams
|
2546
|
-
end
|
2616
|
+
class Cashapp < Stripe::RequestParams; end
|
2617
|
+
class Crypto < Stripe::RequestParams; end
|
2618
|
+
class CustomerBalance < Stripe::RequestParams; end
|
2547
2619
|
|
2548
2620
|
class Eps < Stripe::RequestParams
|
2549
2621
|
# The customer's bank.
|
@@ -2566,11 +2638,8 @@ module Stripe
|
|
2566
2638
|
end
|
2567
2639
|
end
|
2568
2640
|
|
2569
|
-
class Giropay < Stripe::RequestParams
|
2570
|
-
end
|
2571
|
-
|
2572
|
-
class Grabpay < Stripe::RequestParams
|
2573
|
-
end
|
2641
|
+
class Giropay < Stripe::RequestParams; end
|
2642
|
+
class Grabpay < Stripe::RequestParams; end
|
2574
2643
|
|
2575
2644
|
class Ideal < Stripe::RequestParams
|
2576
2645
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
@@ -2581,11 +2650,8 @@ module Stripe
|
|
2581
2650
|
end
|
2582
2651
|
end
|
2583
2652
|
|
2584
|
-
class InteracPresent < Stripe::RequestParams
|
2585
|
-
end
|
2586
|
-
|
2587
|
-
class KakaoPay < Stripe::RequestParams
|
2588
|
-
end
|
2653
|
+
class InteracPresent < Stripe::RequestParams; end
|
2654
|
+
class KakaoPay < Stripe::RequestParams; end
|
2589
2655
|
|
2590
2656
|
class Klarna < Stripe::RequestParams
|
2591
2657
|
class Dob < Stripe::RequestParams
|
@@ -2610,20 +2676,11 @@ module Stripe
|
|
2610
2676
|
end
|
2611
2677
|
end
|
2612
2678
|
|
2613
|
-
class Konbini < Stripe::RequestParams
|
2614
|
-
end
|
2615
|
-
|
2616
|
-
class
|
2617
|
-
end
|
2618
|
-
|
2619
|
-
class Link < Stripe::RequestParams
|
2620
|
-
end
|
2621
|
-
|
2622
|
-
class Mobilepay < Stripe::RequestParams
|
2623
|
-
end
|
2624
|
-
|
2625
|
-
class Multibanco < Stripe::RequestParams
|
2626
|
-
end
|
2679
|
+
class Konbini < Stripe::RequestParams; end
|
2680
|
+
class KrCard < Stripe::RequestParams; end
|
2681
|
+
class Link < Stripe::RequestParams; end
|
2682
|
+
class Mobilepay < Stripe::RequestParams; end
|
2683
|
+
class Multibanco < Stripe::RequestParams; end
|
2627
2684
|
|
2628
2685
|
class NaverPay < Stripe::RequestParams
|
2629
2686
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -2665,8 +2722,7 @@ module Stripe
|
|
2665
2722
|
end
|
2666
2723
|
end
|
2667
2724
|
|
2668
|
-
class Oxxo < Stripe::RequestParams
|
2669
|
-
end
|
2725
|
+
class Oxxo < Stripe::RequestParams; end
|
2670
2726
|
|
2671
2727
|
class P24 < Stripe::RequestParams
|
2672
2728
|
# The customer's bank.
|
@@ -2677,23 +2733,12 @@ module Stripe
|
|
2677
2733
|
end
|
2678
2734
|
end
|
2679
2735
|
|
2680
|
-
class PayByBank < Stripe::RequestParams
|
2681
|
-
end
|
2682
|
-
|
2683
|
-
class
|
2684
|
-
end
|
2685
|
-
|
2686
|
-
class Paynow < Stripe::RequestParams
|
2687
|
-
end
|
2688
|
-
|
2689
|
-
class Paypal < Stripe::RequestParams
|
2690
|
-
end
|
2691
|
-
|
2692
|
-
class Pix < Stripe::RequestParams
|
2693
|
-
end
|
2694
|
-
|
2695
|
-
class Promptpay < Stripe::RequestParams
|
2696
|
-
end
|
2736
|
+
class PayByBank < Stripe::RequestParams; end
|
2737
|
+
class Payco < Stripe::RequestParams; end
|
2738
|
+
class Paynow < Stripe::RequestParams; end
|
2739
|
+
class Paypal < Stripe::RequestParams; end
|
2740
|
+
class Pix < Stripe::RequestParams; end
|
2741
|
+
class Promptpay < Stripe::RequestParams; end
|
2697
2742
|
|
2698
2743
|
class RadarOptions < Stripe::RequestParams
|
2699
2744
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
@@ -2704,14 +2749,9 @@ module Stripe
|
|
2704
2749
|
end
|
2705
2750
|
end
|
2706
2751
|
|
2707
|
-
class RevolutPay < Stripe::RequestParams
|
2708
|
-
end
|
2709
|
-
|
2710
|
-
class SamsungPay < Stripe::RequestParams
|
2711
|
-
end
|
2712
|
-
|
2713
|
-
class Satispay < Stripe::RequestParams
|
2714
|
-
end
|
2752
|
+
class RevolutPay < Stripe::RequestParams; end
|
2753
|
+
class SamsungPay < Stripe::RequestParams; end
|
2754
|
+
class Satispay < Stripe::RequestParams; end
|
2715
2755
|
|
2716
2756
|
class SepaDebit < Stripe::RequestParams
|
2717
2757
|
# IBAN of the bank account.
|
@@ -2731,11 +2771,8 @@ module Stripe
|
|
2731
2771
|
end
|
2732
2772
|
end
|
2733
2773
|
|
2734
|
-
class Swish < Stripe::RequestParams
|
2735
|
-
end
|
2736
|
-
|
2737
|
-
class Twint < Stripe::RequestParams
|
2738
|
-
end
|
2774
|
+
class Swish < Stripe::RequestParams; end
|
2775
|
+
class Twint < Stripe::RequestParams; end
|
2739
2776
|
|
2740
2777
|
class UsBankAccount < Stripe::RequestParams
|
2741
2778
|
# Account holder type: individual or company.
|
@@ -2764,11 +2801,8 @@ module Stripe
|
|
2764
2801
|
end
|
2765
2802
|
end
|
2766
2803
|
|
2767
|
-
class WechatPay < Stripe::RequestParams
|
2768
|
-
end
|
2769
|
-
|
2770
|
-
class Zip < Stripe::RequestParams
|
2771
|
-
end
|
2804
|
+
class WechatPay < Stripe::RequestParams; end
|
2805
|
+
class Zip < Stripe::RequestParams; end
|
2772
2806
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
2773
2807
|
attr_accessor :acss_debit
|
2774
2808
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -2789,7 +2823,7 @@ module Stripe
|
|
2789
2823
|
attr_accessor :bacs_debit
|
2790
2824
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
2791
2825
|
attr_accessor :bancontact
|
2792
|
-
# If this is a `billie` PaymentMethod, this hash contains details about the
|
2826
|
+
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
|
2793
2827
|
attr_accessor :billie
|
2794
2828
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
2795
2829
|
attr_accessor :billing_details
|
@@ -2799,6 +2833,8 @@ module Stripe
|
|
2799
2833
|
attr_accessor :boleto
|
2800
2834
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
2801
2835
|
attr_accessor :cashapp
|
2836
|
+
# If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
|
2837
|
+
attr_accessor :crypto
|
2802
2838
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
2803
2839
|
attr_accessor :customer_balance
|
2804
2840
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
@@ -2851,11 +2887,11 @@ module Stripe
|
|
2851
2887
|
attr_accessor :promptpay
|
2852
2888
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
2853
2889
|
attr_accessor :radar_options
|
2854
|
-
# If this is a `
|
2890
|
+
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
2855
2891
|
attr_accessor :revolut_pay
|
2856
2892
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
2857
2893
|
attr_accessor :samsung_pay
|
2858
|
-
# If this is a `satispay` PaymentMethod, this hash contains details about the
|
2894
|
+
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
|
2859
2895
|
attr_accessor :satispay
|
2860
2896
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
2861
2897
|
attr_accessor :sepa_debit
|
@@ -2890,6 +2926,7 @@ module Stripe
|
|
2890
2926
|
blik: nil,
|
2891
2927
|
boleto: nil,
|
2892
2928
|
cashapp: nil,
|
2929
|
+
crypto: nil,
|
2893
2930
|
customer_balance: nil,
|
2894
2931
|
eps: nil,
|
2895
2932
|
fpx: nil,
|
@@ -2943,6 +2980,7 @@ module Stripe
|
|
2943
2980
|
@blik = blik
|
2944
2981
|
@boleto = boleto
|
2945
2982
|
@cashapp = cashapp
|
2983
|
+
@crypto = crypto
|
2946
2984
|
@customer_balance = customer_balance
|
2947
2985
|
@eps = eps
|
2948
2986
|
@fpx = fpx
|
@@ -3217,6 +3255,19 @@ module Stripe
|
|
3217
3255
|
end
|
3218
3256
|
end
|
3219
3257
|
|
3258
|
+
class Billie < Stripe::RequestParams
|
3259
|
+
# Controls when the funds are captured from the customer's account.
|
3260
|
+
#
|
3261
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
3262
|
+
#
|
3263
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
3264
|
+
attr_accessor :capture_method
|
3265
|
+
|
3266
|
+
def initialize(capture_method: nil)
|
3267
|
+
@capture_method = capture_method
|
3268
|
+
end
|
3269
|
+
end
|
3270
|
+
|
3220
3271
|
class Blik < Stripe::RequestParams
|
3221
3272
|
# The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
|
3222
3273
|
attr_accessor :code
|
@@ -3265,7 +3316,7 @@ module Stripe
|
|
3265
3316
|
# For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
|
3266
3317
|
# One of `month`.
|
3267
3318
|
attr_accessor :interval
|
3268
|
-
# Type of installment plan, one of `fixed_count`.
|
3319
|
+
# Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
|
3269
3320
|
attr_accessor :type
|
3270
3321
|
|
3271
3322
|
def initialize(count: nil, interval: nil, type: nil)
|
@@ -3543,6 +3594,23 @@ module Stripe
|
|
3543
3594
|
end
|
3544
3595
|
end
|
3545
3596
|
|
3597
|
+
class Crypto < Stripe::RequestParams
|
3598
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
3599
|
+
#
|
3600
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
3601
|
+
#
|
3602
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
3603
|
+
#
|
3604
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
3605
|
+
#
|
3606
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
3607
|
+
attr_accessor :setup_future_usage
|
3608
|
+
|
3609
|
+
def initialize(setup_future_usage: nil)
|
3610
|
+
@setup_future_usage = setup_future_usage
|
3611
|
+
end
|
3612
|
+
end
|
3613
|
+
|
3546
3614
|
class CustomerBalance < Stripe::RequestParams
|
3547
3615
|
class BankTransfer < Stripe::RequestParams
|
3548
3616
|
class EuBankTransfer < Stripe::RequestParams
|
@@ -3675,8 +3743,7 @@ module Stripe
|
|
3675
3743
|
end
|
3676
3744
|
end
|
3677
3745
|
|
3678
|
-
class InteracPresent < Stripe::RequestParams
|
3679
|
-
end
|
3746
|
+
class InteracPresent < Stripe::RequestParams; end
|
3680
3747
|
|
3681
3748
|
class KakaoPay < Stripe::RequestParams
|
3682
3749
|
# Controls when the funds are captured from the customer's account.
|
@@ -3701,12 +3768,78 @@ module Stripe
|
|
3701
3768
|
end
|
3702
3769
|
|
3703
3770
|
class Klarna < Stripe::RequestParams
|
3771
|
+
class OnDemand < Stripe::RequestParams
|
3772
|
+
# Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
|
3773
|
+
attr_accessor :average_amount
|
3774
|
+
# The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
3775
|
+
attr_accessor :maximum_amount
|
3776
|
+
# The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
3777
|
+
attr_accessor :minimum_amount
|
3778
|
+
# Interval at which the customer is making purchases
|
3779
|
+
attr_accessor :purchase_interval
|
3780
|
+
# The number of `purchase_interval` between charges
|
3781
|
+
attr_accessor :purchase_interval_count
|
3782
|
+
|
3783
|
+
def initialize(
|
3784
|
+
average_amount: nil,
|
3785
|
+
maximum_amount: nil,
|
3786
|
+
minimum_amount: nil,
|
3787
|
+
purchase_interval: nil,
|
3788
|
+
purchase_interval_count: nil
|
3789
|
+
)
|
3790
|
+
@average_amount = average_amount
|
3791
|
+
@maximum_amount = maximum_amount
|
3792
|
+
@minimum_amount = minimum_amount
|
3793
|
+
@purchase_interval = purchase_interval
|
3794
|
+
@purchase_interval_count = purchase_interval_count
|
3795
|
+
end
|
3796
|
+
end
|
3797
|
+
|
3798
|
+
class Subscription < Stripe::RequestParams
|
3799
|
+
class NextBilling < Stripe::RequestParams
|
3800
|
+
# The amount of the next charge for the subscription.
|
3801
|
+
attr_accessor :amount
|
3802
|
+
# The date of the next charge for the subscription in YYYY-MM-DD format.
|
3803
|
+
attr_accessor :date
|
3804
|
+
|
3805
|
+
def initialize(amount: nil, date: nil)
|
3806
|
+
@amount = amount
|
3807
|
+
@date = date
|
3808
|
+
end
|
3809
|
+
end
|
3810
|
+
# Unit of time between subscription charges.
|
3811
|
+
attr_accessor :interval
|
3812
|
+
# The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
|
3813
|
+
attr_accessor :interval_count
|
3814
|
+
# Name for subscription.
|
3815
|
+
attr_accessor :name
|
3816
|
+
# Describes the upcoming charge for this subscription.
|
3817
|
+
attr_accessor :next_billing
|
3818
|
+
# A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
|
3819
|
+
attr_accessor :reference
|
3820
|
+
|
3821
|
+
def initialize(
|
3822
|
+
interval: nil,
|
3823
|
+
interval_count: nil,
|
3824
|
+
name: nil,
|
3825
|
+
next_billing: nil,
|
3826
|
+
reference: nil
|
3827
|
+
)
|
3828
|
+
@interval = interval
|
3829
|
+
@interval_count = interval_count
|
3830
|
+
@name = name
|
3831
|
+
@next_billing = next_billing
|
3832
|
+
@reference = reference
|
3833
|
+
end
|
3834
|
+
end
|
3704
3835
|
# Controls when the funds are captured from the customer's account.
|
3705
3836
|
#
|
3706
3837
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
3707
3838
|
#
|
3708
3839
|
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
3709
3840
|
attr_accessor :capture_method
|
3841
|
+
# On-demand details if setting up or charging an on-demand payment.
|
3842
|
+
attr_accessor :on_demand
|
3710
3843
|
# Preferred language of the Klarna authorization page that the customer is redirected to
|
3711
3844
|
attr_accessor :preferred_locale
|
3712
3845
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
@@ -3719,11 +3852,21 @@ module Stripe
|
|
3719
3852
|
#
|
3720
3853
|
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
3721
3854
|
attr_accessor :setup_future_usage
|
3855
|
+
# Subscription details if setting up or charging a subscription.
|
3856
|
+
attr_accessor :subscriptions
|
3722
3857
|
|
3723
|
-
def initialize(
|
3858
|
+
def initialize(
|
3859
|
+
capture_method: nil,
|
3860
|
+
on_demand: nil,
|
3861
|
+
preferred_locale: nil,
|
3862
|
+
setup_future_usage: nil,
|
3863
|
+
subscriptions: nil
|
3864
|
+
)
|
3724
3865
|
@capture_method = capture_method
|
3866
|
+
@on_demand = on_demand
|
3725
3867
|
@preferred_locale = preferred_locale
|
3726
3868
|
@setup_future_usage = setup_future_usage
|
3869
|
+
@subscriptions = subscriptions
|
3727
3870
|
end
|
3728
3871
|
end
|
3729
3872
|
|
@@ -3934,8 +4077,7 @@ module Stripe
|
|
3934
4077
|
end
|
3935
4078
|
end
|
3936
4079
|
|
3937
|
-
class PayByBank < Stripe::RequestParams
|
3938
|
-
end
|
4080
|
+
class PayByBank < Stripe::RequestParams; end
|
3939
4081
|
|
3940
4082
|
class Payco < Stripe::RequestParams
|
3941
4083
|
# Controls when the funds are captured from the customer's account.
|
@@ -4077,6 +4219,19 @@ module Stripe
|
|
4077
4219
|
end
|
4078
4220
|
end
|
4079
4221
|
|
4222
|
+
class Satispay < Stripe::RequestParams
|
4223
|
+
# Controls when the funds are captured from the customer's account.
|
4224
|
+
#
|
4225
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
4226
|
+
#
|
4227
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
4228
|
+
attr_accessor :capture_method
|
4229
|
+
|
4230
|
+
def initialize(capture_method: nil)
|
4231
|
+
@capture_method = capture_method
|
4232
|
+
end
|
4233
|
+
end
|
4234
|
+
|
4080
4235
|
class SepaDebit < Stripe::RequestParams
|
4081
4236
|
class MandateOptions < Stripe::RequestParams
|
4082
4237
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
@@ -4308,6 +4463,8 @@ module Stripe
|
|
4308
4463
|
attr_accessor :bacs_debit
|
4309
4464
|
# If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
|
4310
4465
|
attr_accessor :bancontact
|
4466
|
+
# If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
|
4467
|
+
attr_accessor :billie
|
4311
4468
|
# If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
|
4312
4469
|
attr_accessor :blik
|
4313
4470
|
# If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
|
@@ -4318,6 +4475,8 @@ module Stripe
|
|
4318
4475
|
attr_accessor :card_present
|
4319
4476
|
# If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
|
4320
4477
|
attr_accessor :cashapp
|
4478
|
+
# If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
|
4479
|
+
attr_accessor :crypto
|
4321
4480
|
# If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
|
4322
4481
|
attr_accessor :customer_balance
|
4323
4482
|
# If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
|
@@ -4370,6 +4529,8 @@ module Stripe
|
|
4370
4529
|
attr_accessor :revolut_pay
|
4371
4530
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
4372
4531
|
attr_accessor :samsung_pay
|
4532
|
+
# If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
|
4533
|
+
attr_accessor :satispay
|
4373
4534
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
4374
4535
|
attr_accessor :sepa_debit
|
4375
4536
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
@@ -4395,11 +4556,13 @@ module Stripe
|
|
4395
4556
|
au_becs_debit: nil,
|
4396
4557
|
bacs_debit: nil,
|
4397
4558
|
bancontact: nil,
|
4559
|
+
billie: nil,
|
4398
4560
|
blik: nil,
|
4399
4561
|
boleto: nil,
|
4400
4562
|
card: nil,
|
4401
4563
|
card_present: nil,
|
4402
4564
|
cashapp: nil,
|
4565
|
+
crypto: nil,
|
4403
4566
|
customer_balance: nil,
|
4404
4567
|
eps: nil,
|
4405
4568
|
fpx: nil,
|
@@ -4426,6 +4589,7 @@ module Stripe
|
|
4426
4589
|
promptpay: nil,
|
4427
4590
|
revolut_pay: nil,
|
4428
4591
|
samsung_pay: nil,
|
4592
|
+
satispay: nil,
|
4429
4593
|
sepa_debit: nil,
|
4430
4594
|
sofort: nil,
|
4431
4595
|
swish: nil,
|
@@ -4443,11 +4607,13 @@ module Stripe
|
|
4443
4607
|
@au_becs_debit = au_becs_debit
|
4444
4608
|
@bacs_debit = bacs_debit
|
4445
4609
|
@bancontact = bancontact
|
4610
|
+
@billie = billie
|
4446
4611
|
@blik = blik
|
4447
4612
|
@boleto = boleto
|
4448
4613
|
@card = card
|
4449
4614
|
@card_present = card_present
|
4450
4615
|
@cashapp = cashapp
|
4616
|
+
@crypto = crypto
|
4451
4617
|
@customer_balance = customer_balance
|
4452
4618
|
@eps = eps
|
4453
4619
|
@fpx = fpx
|
@@ -4474,6 +4640,7 @@ module Stripe
|
|
4474
4640
|
@promptpay = promptpay
|
4475
4641
|
@revolut_pay = revolut_pay
|
4476
4642
|
@samsung_pay = samsung_pay
|
4643
|
+
@satispay = satispay
|
4477
4644
|
@sepa_debit = sepa_debit
|
4478
4645
|
@sofort = sofort
|
4479
4646
|
@swish = swish
|
@@ -4573,7 +4740,7 @@ module Stripe
|
|
4573
4740
|
attr_accessor :payment_method_data
|
4574
4741
|
# Payment-method-specific configuration for this PaymentIntent.
|
4575
4742
|
attr_accessor :payment_method_options
|
4576
|
-
# The list of payment method types (for example, card) that this PaymentIntent can use. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
|
4743
|
+
# The list of payment method types (for example, card) that this PaymentIntent can use. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
4577
4744
|
attr_accessor :payment_method_types
|
4578
4745
|
# Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
|
4579
4746
|
attr_accessor :receipt_email
|
@@ -4747,8 +4914,7 @@ module Stripe
|
|
4747
4914
|
class ConfirmParams < Stripe::RequestParams
|
4748
4915
|
class MandateData < Stripe::RequestParams
|
4749
4916
|
class CustomerAcceptance < Stripe::RequestParams
|
4750
|
-
class Offline < Stripe::RequestParams
|
4751
|
-
end
|
4917
|
+
class Offline < Stripe::RequestParams; end
|
4752
4918
|
|
4753
4919
|
class Online < Stripe::RequestParams
|
4754
4920
|
# The IP address from which the Mandate was accepted by the customer.
|
@@ -4801,20 +4967,11 @@ module Stripe
|
|
4801
4967
|
end
|
4802
4968
|
end
|
4803
4969
|
|
4804
|
-
class Affirm < Stripe::RequestParams
|
4805
|
-
end
|
4806
|
-
|
4807
|
-
class
|
4808
|
-
end
|
4809
|
-
|
4810
|
-
class Alipay < Stripe::RequestParams
|
4811
|
-
end
|
4812
|
-
|
4813
|
-
class Alma < Stripe::RequestParams
|
4814
|
-
end
|
4815
|
-
|
4816
|
-
class AmazonPay < Stripe::RequestParams
|
4817
|
-
end
|
4970
|
+
class Affirm < Stripe::RequestParams; end
|
4971
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
4972
|
+
class Alipay < Stripe::RequestParams; end
|
4973
|
+
class Alma < Stripe::RequestParams; end
|
4974
|
+
class AmazonPay < Stripe::RequestParams; end
|
4818
4975
|
|
4819
4976
|
class AuBecsDebit < Stripe::RequestParams
|
4820
4977
|
# The account number for the bank account.
|
@@ -4840,11 +4997,8 @@ module Stripe
|
|
4840
4997
|
end
|
4841
4998
|
end
|
4842
4999
|
|
4843
|
-
class Bancontact < Stripe::RequestParams
|
4844
|
-
end
|
4845
|
-
|
4846
|
-
class Billie < Stripe::RequestParams
|
4847
|
-
end
|
5000
|
+
class Bancontact < Stripe::RequestParams; end
|
5001
|
+
class Billie < Stripe::RequestParams; end
|
4848
5002
|
|
4849
5003
|
class BillingDetails < Stripe::RequestParams
|
4850
5004
|
class Address < Stripe::RequestParams
|
@@ -4885,17 +5039,19 @@ module Stripe
|
|
4885
5039
|
attr_accessor :name
|
4886
5040
|
# Billing phone number (including extension).
|
4887
5041
|
attr_accessor :phone
|
5042
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
5043
|
+
attr_accessor :tax_id
|
4888
5044
|
|
4889
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
5045
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
|
4890
5046
|
@address = address
|
4891
5047
|
@email = email
|
4892
5048
|
@name = name
|
4893
5049
|
@phone = phone
|
5050
|
+
@tax_id = tax_id
|
4894
5051
|
end
|
4895
5052
|
end
|
4896
5053
|
|
4897
|
-
class Blik < Stripe::RequestParams
|
4898
|
-
end
|
5054
|
+
class Blik < Stripe::RequestParams; end
|
4899
5055
|
|
4900
5056
|
class Boleto < Stripe::RequestParams
|
4901
5057
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -4906,11 +5062,9 @@ module Stripe
|
|
4906
5062
|
end
|
4907
5063
|
end
|
4908
5064
|
|
4909
|
-
class Cashapp < Stripe::RequestParams
|
4910
|
-
end
|
4911
|
-
|
4912
|
-
class CustomerBalance < Stripe::RequestParams
|
4913
|
-
end
|
5065
|
+
class Cashapp < Stripe::RequestParams; end
|
5066
|
+
class Crypto < Stripe::RequestParams; end
|
5067
|
+
class CustomerBalance < Stripe::RequestParams; end
|
4914
5068
|
|
4915
5069
|
class Eps < Stripe::RequestParams
|
4916
5070
|
# The customer's bank.
|
@@ -4933,11 +5087,8 @@ module Stripe
|
|
4933
5087
|
end
|
4934
5088
|
end
|
4935
5089
|
|
4936
|
-
class Giropay < Stripe::RequestParams
|
4937
|
-
end
|
4938
|
-
|
4939
|
-
class Grabpay < Stripe::RequestParams
|
4940
|
-
end
|
5090
|
+
class Giropay < Stripe::RequestParams; end
|
5091
|
+
class Grabpay < Stripe::RequestParams; end
|
4941
5092
|
|
4942
5093
|
class Ideal < Stripe::RequestParams
|
4943
5094
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
@@ -4948,11 +5099,8 @@ module Stripe
|
|
4948
5099
|
end
|
4949
5100
|
end
|
4950
5101
|
|
4951
|
-
class InteracPresent < Stripe::RequestParams
|
4952
|
-
end
|
4953
|
-
|
4954
|
-
class KakaoPay < Stripe::RequestParams
|
4955
|
-
end
|
5102
|
+
class InteracPresent < Stripe::RequestParams; end
|
5103
|
+
class KakaoPay < Stripe::RequestParams; end
|
4956
5104
|
|
4957
5105
|
class Klarna < Stripe::RequestParams
|
4958
5106
|
class Dob < Stripe::RequestParams
|
@@ -4977,20 +5125,11 @@ module Stripe
|
|
4977
5125
|
end
|
4978
5126
|
end
|
4979
5127
|
|
4980
|
-
class Konbini < Stripe::RequestParams
|
4981
|
-
end
|
4982
|
-
|
4983
|
-
class
|
4984
|
-
end
|
4985
|
-
|
4986
|
-
class Link < Stripe::RequestParams
|
4987
|
-
end
|
4988
|
-
|
4989
|
-
class Mobilepay < Stripe::RequestParams
|
4990
|
-
end
|
4991
|
-
|
4992
|
-
class Multibanco < Stripe::RequestParams
|
4993
|
-
end
|
5128
|
+
class Konbini < Stripe::RequestParams; end
|
5129
|
+
class KrCard < Stripe::RequestParams; end
|
5130
|
+
class Link < Stripe::RequestParams; end
|
5131
|
+
class Mobilepay < Stripe::RequestParams; end
|
5132
|
+
class Multibanco < Stripe::RequestParams; end
|
4994
5133
|
|
4995
5134
|
class NaverPay < Stripe::RequestParams
|
4996
5135
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -5032,8 +5171,7 @@ module Stripe
|
|
5032
5171
|
end
|
5033
5172
|
end
|
5034
5173
|
|
5035
|
-
class Oxxo < Stripe::RequestParams
|
5036
|
-
end
|
5174
|
+
class Oxxo < Stripe::RequestParams; end
|
5037
5175
|
|
5038
5176
|
class P24 < Stripe::RequestParams
|
5039
5177
|
# The customer's bank.
|
@@ -5044,23 +5182,12 @@ module Stripe
|
|
5044
5182
|
end
|
5045
5183
|
end
|
5046
5184
|
|
5047
|
-
class PayByBank < Stripe::RequestParams
|
5048
|
-
end
|
5049
|
-
|
5050
|
-
class
|
5051
|
-
end
|
5052
|
-
|
5053
|
-
class Paynow < Stripe::RequestParams
|
5054
|
-
end
|
5055
|
-
|
5056
|
-
class Paypal < Stripe::RequestParams
|
5057
|
-
end
|
5058
|
-
|
5059
|
-
class Pix < Stripe::RequestParams
|
5060
|
-
end
|
5061
|
-
|
5062
|
-
class Promptpay < Stripe::RequestParams
|
5063
|
-
end
|
5185
|
+
class PayByBank < Stripe::RequestParams; end
|
5186
|
+
class Payco < Stripe::RequestParams; end
|
5187
|
+
class Paynow < Stripe::RequestParams; end
|
5188
|
+
class Paypal < Stripe::RequestParams; end
|
5189
|
+
class Pix < Stripe::RequestParams; end
|
5190
|
+
class Promptpay < Stripe::RequestParams; end
|
5064
5191
|
|
5065
5192
|
class RadarOptions < Stripe::RequestParams
|
5066
5193
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
@@ -5071,14 +5198,9 @@ module Stripe
|
|
5071
5198
|
end
|
5072
5199
|
end
|
5073
5200
|
|
5074
|
-
class RevolutPay < Stripe::RequestParams
|
5075
|
-
end
|
5076
|
-
|
5077
|
-
class SamsungPay < Stripe::RequestParams
|
5078
|
-
end
|
5079
|
-
|
5080
|
-
class Satispay < Stripe::RequestParams
|
5081
|
-
end
|
5201
|
+
class RevolutPay < Stripe::RequestParams; end
|
5202
|
+
class SamsungPay < Stripe::RequestParams; end
|
5203
|
+
class Satispay < Stripe::RequestParams; end
|
5082
5204
|
|
5083
5205
|
class SepaDebit < Stripe::RequestParams
|
5084
5206
|
# IBAN of the bank account.
|
@@ -5098,11 +5220,8 @@ module Stripe
|
|
5098
5220
|
end
|
5099
5221
|
end
|
5100
5222
|
|
5101
|
-
class Swish < Stripe::RequestParams
|
5102
|
-
end
|
5103
|
-
|
5104
|
-
class Twint < Stripe::RequestParams
|
5105
|
-
end
|
5223
|
+
class Swish < Stripe::RequestParams; end
|
5224
|
+
class Twint < Stripe::RequestParams; end
|
5106
5225
|
|
5107
5226
|
class UsBankAccount < Stripe::RequestParams
|
5108
5227
|
# Account holder type: individual or company.
|
@@ -5131,11 +5250,8 @@ module Stripe
|
|
5131
5250
|
end
|
5132
5251
|
end
|
5133
5252
|
|
5134
|
-
class WechatPay < Stripe::RequestParams
|
5135
|
-
end
|
5136
|
-
|
5137
|
-
class Zip < Stripe::RequestParams
|
5138
|
-
end
|
5253
|
+
class WechatPay < Stripe::RequestParams; end
|
5254
|
+
class Zip < Stripe::RequestParams; end
|
5139
5255
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
5140
5256
|
attr_accessor :acss_debit
|
5141
5257
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -5156,7 +5272,7 @@ module Stripe
|
|
5156
5272
|
attr_accessor :bacs_debit
|
5157
5273
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
5158
5274
|
attr_accessor :bancontact
|
5159
|
-
# If this is a `billie` PaymentMethod, this hash contains details about the
|
5275
|
+
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
|
5160
5276
|
attr_accessor :billie
|
5161
5277
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
5162
5278
|
attr_accessor :billing_details
|
@@ -5166,6 +5282,8 @@ module Stripe
|
|
5166
5282
|
attr_accessor :boleto
|
5167
5283
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
5168
5284
|
attr_accessor :cashapp
|
5285
|
+
# If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
|
5286
|
+
attr_accessor :crypto
|
5169
5287
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
5170
5288
|
attr_accessor :customer_balance
|
5171
5289
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
@@ -5218,11 +5336,11 @@ module Stripe
|
|
5218
5336
|
attr_accessor :promptpay
|
5219
5337
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
5220
5338
|
attr_accessor :radar_options
|
5221
|
-
# If this is a `
|
5339
|
+
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
5222
5340
|
attr_accessor :revolut_pay
|
5223
5341
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
5224
5342
|
attr_accessor :samsung_pay
|
5225
|
-
# If this is a `satispay` PaymentMethod, this hash contains details about the
|
5343
|
+
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
|
5226
5344
|
attr_accessor :satispay
|
5227
5345
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
5228
5346
|
attr_accessor :sepa_debit
|
@@ -5257,6 +5375,7 @@ module Stripe
|
|
5257
5375
|
blik: nil,
|
5258
5376
|
boleto: nil,
|
5259
5377
|
cashapp: nil,
|
5378
|
+
crypto: nil,
|
5260
5379
|
customer_balance: nil,
|
5261
5380
|
eps: nil,
|
5262
5381
|
fpx: nil,
|
@@ -5310,6 +5429,7 @@ module Stripe
|
|
5310
5429
|
@blik = blik
|
5311
5430
|
@boleto = boleto
|
5312
5431
|
@cashapp = cashapp
|
5432
|
+
@crypto = crypto
|
5313
5433
|
@customer_balance = customer_balance
|
5314
5434
|
@eps = eps
|
5315
5435
|
@fpx = fpx
|
@@ -5584,6 +5704,19 @@ module Stripe
|
|
5584
5704
|
end
|
5585
5705
|
end
|
5586
5706
|
|
5707
|
+
class Billie < Stripe::RequestParams
|
5708
|
+
# Controls when the funds are captured from the customer's account.
|
5709
|
+
#
|
5710
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
5711
|
+
#
|
5712
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
5713
|
+
attr_accessor :capture_method
|
5714
|
+
|
5715
|
+
def initialize(capture_method: nil)
|
5716
|
+
@capture_method = capture_method
|
5717
|
+
end
|
5718
|
+
end
|
5719
|
+
|
5587
5720
|
class Blik < Stripe::RequestParams
|
5588
5721
|
# The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
|
5589
5722
|
attr_accessor :code
|
@@ -5632,7 +5765,7 @@ module Stripe
|
|
5632
5765
|
# For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
|
5633
5766
|
# One of `month`.
|
5634
5767
|
attr_accessor :interval
|
5635
|
-
# Type of installment plan, one of `fixed_count`.
|
5768
|
+
# Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
|
5636
5769
|
attr_accessor :type
|
5637
5770
|
|
5638
5771
|
def initialize(count: nil, interval: nil, type: nil)
|
@@ -5910,6 +6043,23 @@ module Stripe
|
|
5910
6043
|
end
|
5911
6044
|
end
|
5912
6045
|
|
6046
|
+
class Crypto < Stripe::RequestParams
|
6047
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
6048
|
+
#
|
6049
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
6050
|
+
#
|
6051
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
6052
|
+
#
|
6053
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
6054
|
+
#
|
6055
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
6056
|
+
attr_accessor :setup_future_usage
|
6057
|
+
|
6058
|
+
def initialize(setup_future_usage: nil)
|
6059
|
+
@setup_future_usage = setup_future_usage
|
6060
|
+
end
|
6061
|
+
end
|
6062
|
+
|
5913
6063
|
class CustomerBalance < Stripe::RequestParams
|
5914
6064
|
class BankTransfer < Stripe::RequestParams
|
5915
6065
|
class EuBankTransfer < Stripe::RequestParams
|
@@ -6042,8 +6192,7 @@ module Stripe
|
|
6042
6192
|
end
|
6043
6193
|
end
|
6044
6194
|
|
6045
|
-
class InteracPresent < Stripe::RequestParams
|
6046
|
-
end
|
6195
|
+
class InteracPresent < Stripe::RequestParams; end
|
6047
6196
|
|
6048
6197
|
class KakaoPay < Stripe::RequestParams
|
6049
6198
|
# Controls when the funds are captured from the customer's account.
|
@@ -6068,12 +6217,78 @@ module Stripe
|
|
6068
6217
|
end
|
6069
6218
|
|
6070
6219
|
class Klarna < Stripe::RequestParams
|
6220
|
+
class OnDemand < Stripe::RequestParams
|
6221
|
+
# Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
|
6222
|
+
attr_accessor :average_amount
|
6223
|
+
# The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
6224
|
+
attr_accessor :maximum_amount
|
6225
|
+
# The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
6226
|
+
attr_accessor :minimum_amount
|
6227
|
+
# Interval at which the customer is making purchases
|
6228
|
+
attr_accessor :purchase_interval
|
6229
|
+
# The number of `purchase_interval` between charges
|
6230
|
+
attr_accessor :purchase_interval_count
|
6231
|
+
|
6232
|
+
def initialize(
|
6233
|
+
average_amount: nil,
|
6234
|
+
maximum_amount: nil,
|
6235
|
+
minimum_amount: nil,
|
6236
|
+
purchase_interval: nil,
|
6237
|
+
purchase_interval_count: nil
|
6238
|
+
)
|
6239
|
+
@average_amount = average_amount
|
6240
|
+
@maximum_amount = maximum_amount
|
6241
|
+
@minimum_amount = minimum_amount
|
6242
|
+
@purchase_interval = purchase_interval
|
6243
|
+
@purchase_interval_count = purchase_interval_count
|
6244
|
+
end
|
6245
|
+
end
|
6246
|
+
|
6247
|
+
class Subscription < Stripe::RequestParams
|
6248
|
+
class NextBilling < Stripe::RequestParams
|
6249
|
+
# The amount of the next charge for the subscription.
|
6250
|
+
attr_accessor :amount
|
6251
|
+
# The date of the next charge for the subscription in YYYY-MM-DD format.
|
6252
|
+
attr_accessor :date
|
6253
|
+
|
6254
|
+
def initialize(amount: nil, date: nil)
|
6255
|
+
@amount = amount
|
6256
|
+
@date = date
|
6257
|
+
end
|
6258
|
+
end
|
6259
|
+
# Unit of time between subscription charges.
|
6260
|
+
attr_accessor :interval
|
6261
|
+
# The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
|
6262
|
+
attr_accessor :interval_count
|
6263
|
+
# Name for subscription.
|
6264
|
+
attr_accessor :name
|
6265
|
+
# Describes the upcoming charge for this subscription.
|
6266
|
+
attr_accessor :next_billing
|
6267
|
+
# A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
|
6268
|
+
attr_accessor :reference
|
6269
|
+
|
6270
|
+
def initialize(
|
6271
|
+
interval: nil,
|
6272
|
+
interval_count: nil,
|
6273
|
+
name: nil,
|
6274
|
+
next_billing: nil,
|
6275
|
+
reference: nil
|
6276
|
+
)
|
6277
|
+
@interval = interval
|
6278
|
+
@interval_count = interval_count
|
6279
|
+
@name = name
|
6280
|
+
@next_billing = next_billing
|
6281
|
+
@reference = reference
|
6282
|
+
end
|
6283
|
+
end
|
6071
6284
|
# Controls when the funds are captured from the customer's account.
|
6072
6285
|
#
|
6073
6286
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
6074
6287
|
#
|
6075
6288
|
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
6076
6289
|
attr_accessor :capture_method
|
6290
|
+
# On-demand details if setting up or charging an on-demand payment.
|
6291
|
+
attr_accessor :on_demand
|
6077
6292
|
# Preferred language of the Klarna authorization page that the customer is redirected to
|
6078
6293
|
attr_accessor :preferred_locale
|
6079
6294
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
@@ -6086,11 +6301,21 @@ module Stripe
|
|
6086
6301
|
#
|
6087
6302
|
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
6088
6303
|
attr_accessor :setup_future_usage
|
6304
|
+
# Subscription details if setting up or charging a subscription.
|
6305
|
+
attr_accessor :subscriptions
|
6089
6306
|
|
6090
|
-
def initialize(
|
6307
|
+
def initialize(
|
6308
|
+
capture_method: nil,
|
6309
|
+
on_demand: nil,
|
6310
|
+
preferred_locale: nil,
|
6311
|
+
setup_future_usage: nil,
|
6312
|
+
subscriptions: nil
|
6313
|
+
)
|
6091
6314
|
@capture_method = capture_method
|
6315
|
+
@on_demand = on_demand
|
6092
6316
|
@preferred_locale = preferred_locale
|
6093
6317
|
@setup_future_usage = setup_future_usage
|
6318
|
+
@subscriptions = subscriptions
|
6094
6319
|
end
|
6095
6320
|
end
|
6096
6321
|
|
@@ -6301,8 +6526,7 @@ module Stripe
|
|
6301
6526
|
end
|
6302
6527
|
end
|
6303
6528
|
|
6304
|
-
class PayByBank < Stripe::RequestParams
|
6305
|
-
end
|
6529
|
+
class PayByBank < Stripe::RequestParams; end
|
6306
6530
|
|
6307
6531
|
class Payco < Stripe::RequestParams
|
6308
6532
|
# Controls when the funds are captured from the customer's account.
|
@@ -6444,6 +6668,19 @@ module Stripe
|
|
6444
6668
|
end
|
6445
6669
|
end
|
6446
6670
|
|
6671
|
+
class Satispay < Stripe::RequestParams
|
6672
|
+
# Controls when the funds are captured from the customer's account.
|
6673
|
+
#
|
6674
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
6675
|
+
#
|
6676
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
6677
|
+
attr_accessor :capture_method
|
6678
|
+
|
6679
|
+
def initialize(capture_method: nil)
|
6680
|
+
@capture_method = capture_method
|
6681
|
+
end
|
6682
|
+
end
|
6683
|
+
|
6447
6684
|
class SepaDebit < Stripe::RequestParams
|
6448
6685
|
class MandateOptions < Stripe::RequestParams
|
6449
6686
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
@@ -6675,6 +6912,8 @@ module Stripe
|
|
6675
6912
|
attr_accessor :bacs_debit
|
6676
6913
|
# If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
|
6677
6914
|
attr_accessor :bancontact
|
6915
|
+
# If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
|
6916
|
+
attr_accessor :billie
|
6678
6917
|
# If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
|
6679
6918
|
attr_accessor :blik
|
6680
6919
|
# If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
|
@@ -6685,6 +6924,8 @@ module Stripe
|
|
6685
6924
|
attr_accessor :card_present
|
6686
6925
|
# If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
|
6687
6926
|
attr_accessor :cashapp
|
6927
|
+
# If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
|
6928
|
+
attr_accessor :crypto
|
6688
6929
|
# If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
|
6689
6930
|
attr_accessor :customer_balance
|
6690
6931
|
# If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
|
@@ -6737,6 +6978,8 @@ module Stripe
|
|
6737
6978
|
attr_accessor :revolut_pay
|
6738
6979
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
6739
6980
|
attr_accessor :samsung_pay
|
6981
|
+
# If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
|
6982
|
+
attr_accessor :satispay
|
6740
6983
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
6741
6984
|
attr_accessor :sepa_debit
|
6742
6985
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
@@ -6762,11 +7005,13 @@ module Stripe
|
|
6762
7005
|
au_becs_debit: nil,
|
6763
7006
|
bacs_debit: nil,
|
6764
7007
|
bancontact: nil,
|
7008
|
+
billie: nil,
|
6765
7009
|
blik: nil,
|
6766
7010
|
boleto: nil,
|
6767
7011
|
card: nil,
|
6768
7012
|
card_present: nil,
|
6769
7013
|
cashapp: nil,
|
7014
|
+
crypto: nil,
|
6770
7015
|
customer_balance: nil,
|
6771
7016
|
eps: nil,
|
6772
7017
|
fpx: nil,
|
@@ -6793,6 +7038,7 @@ module Stripe
|
|
6793
7038
|
promptpay: nil,
|
6794
7039
|
revolut_pay: nil,
|
6795
7040
|
samsung_pay: nil,
|
7041
|
+
satispay: nil,
|
6796
7042
|
sepa_debit: nil,
|
6797
7043
|
sofort: nil,
|
6798
7044
|
swish: nil,
|
@@ -6810,11 +7056,13 @@ module Stripe
|
|
6810
7056
|
@au_becs_debit = au_becs_debit
|
6811
7057
|
@bacs_debit = bacs_debit
|
6812
7058
|
@bancontact = bancontact
|
7059
|
+
@billie = billie
|
6813
7060
|
@blik = blik
|
6814
7061
|
@boleto = boleto
|
6815
7062
|
@card = card
|
6816
7063
|
@card_present = card_present
|
6817
7064
|
@cashapp = cashapp
|
7065
|
+
@crypto = crypto
|
6818
7066
|
@customer_balance = customer_balance
|
6819
7067
|
@eps = eps
|
6820
7068
|
@fpx = fpx
|
@@ -6841,6 +7089,7 @@ module Stripe
|
|
6841
7089
|
@promptpay = promptpay
|
6842
7090
|
@revolut_pay = revolut_pay
|
6843
7091
|
@samsung_pay = samsung_pay
|
7092
|
+
@satispay = satispay
|
6844
7093
|
@sepa_debit = sepa_debit
|
6845
7094
|
@sofort = sofort
|
6846
7095
|
@swish = swish
|
@@ -6927,6 +7176,7 @@ module Stripe
|
|
6927
7176
|
# Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards).
|
6928
7177
|
attr_accessor :off_session
|
6929
7178
|
# ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent.
|
7179
|
+
# If the payment method is attached to a Customer, it must match the [customer](https://stripe.com/docs/api#create_payment_intent-customer) that is set on this PaymentIntent.
|
6930
7180
|
attr_accessor :payment_method
|
6931
7181
|
# If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod will appear
|
6932
7182
|
# in the [payment_method](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method)
|
@@ -6934,7 +7184,7 @@ module Stripe
|
|
6934
7184
|
attr_accessor :payment_method_data
|
6935
7185
|
# Payment method-specific configuration for this PaymentIntent.
|
6936
7186
|
attr_accessor :payment_method_options
|
6937
|
-
# The list of payment method types (for example, a card) that this PaymentIntent can use. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
|
7187
|
+
# The list of payment method types (for example, a card) that this PaymentIntent can use. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
6938
7188
|
attr_accessor :payment_method_types
|
6939
7189
|
# Options to configure Radar. Learn more about [Radar Sessions](https://stripe.com/docs/radar/radar-session).
|
6940
7190
|
attr_accessor :radar_options
|
@@ -7068,11 +7318,11 @@ module Stripe
|
|
7068
7318
|
)
|
7069
7319
|
end
|
7070
7320
|
|
7071
|
-
# You can cancel a PaymentIntent object when it's in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, [in rare cases](https://stripe.com/docs/payments/intents), processing.
|
7321
|
+
# You can cancel a PaymentIntent object when it's in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, [in rare cases](https://docs.stripe.com/docs/payments/intents), processing.
|
7072
7322
|
#
|
7073
7323
|
# After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
|
7074
7324
|
#
|
7075
|
-
# You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
|
7325
|
+
# You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
|
7076
7326
|
def cancel(intent, params = {}, opts = {})
|
7077
7327
|
request(
|
7078
7328
|
method: :post,
|
@@ -7087,7 +7337,7 @@ module Stripe
|
|
7087
7337
|
#
|
7088
7338
|
# Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.
|
7089
7339
|
#
|
7090
|
-
# Learn more about [separate authorization and capture](https://stripe.com/docs/payments/capture-later).
|
7340
|
+
# Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later).
|
7091
7341
|
def capture(intent, params = {}, opts = {})
|
7092
7342
|
request(
|
7093
7343
|
method: :post,
|
@@ -7109,8 +7359,8 @@ module Stripe
|
|
7109
7359
|
# payment succeeds, the PaymentIntent will transition to the succeeded
|
7110
7360
|
# status (or requires_capture, if capture_method is set to manual).
|
7111
7361
|
# If the confirmation_method is automatic, payment may be attempted
|
7112
|
-
# using our [client SDKs](https://stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
|
7113
|
-
# and the PaymentIntent's [client_secret](https://stripe.com/
|
7362
|
+
# using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
|
7363
|
+
# and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
|
7114
7364
|
# After next_actions are handled by the client, no additional
|
7115
7365
|
# confirmation is required to complete the payment.
|
7116
7366
|
# If the confirmation_method is manual, all payment attempts must be
|
@@ -7135,13 +7385,13 @@ module Stripe
|
|
7135
7385
|
|
7136
7386
|
# Creates a PaymentIntent object.
|
7137
7387
|
#
|
7138
|
-
# After the PaymentIntent is created, attach a payment method and [confirm](https://stripe.com/docs/api/payment_intents/confirm)
|
7388
|
+
# After the PaymentIntent is created, attach a payment method and [confirm](https://docs.stripe.com/docs/api/payment_intents/confirm)
|
7139
7389
|
# to continue the payment. Learn more about <a href="/docs/payments/payment-intents">the available payment flows
|
7140
7390
|
# with the Payment Intents API.
|
7141
7391
|
#
|
7142
7392
|
# When you use confirm=true during creation, it's equivalent to creating
|
7143
7393
|
# and confirming the PaymentIntent in the same call. You can use any parameters
|
7144
|
-
# available in the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) when you supply
|
7394
|
+
# available in the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) when you supply
|
7145
7395
|
# confirm=true.
|
7146
7396
|
def create(params = {}, opts = {})
|
7147
7397
|
request(
|
@@ -7154,9 +7404,9 @@ module Stripe
|
|
7154
7404
|
end
|
7155
7405
|
|
7156
7406
|
# Perform an incremental authorization on an eligible
|
7157
|
-
# [PaymentIntent](https://stripe.com/docs/api/payment_intents/object). To be eligible, the
|
7407
|
+
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
7158
7408
|
# PaymentIntent's status must be requires_capture and
|
7159
|
-
# [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
|
7409
|
+
# [incremental_authorization_supported](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
|
7160
7410
|
# must be true.
|
7161
7411
|
#
|
7162
7412
|
# Incremental authorizations attempt to increase the authorized amount on
|
@@ -7167,16 +7417,16 @@ module Stripe
|
|
7167
7417
|
#
|
7168
7418
|
# If the incremental authorization succeeds, the PaymentIntent object
|
7169
7419
|
# returns with the updated
|
7170
|
-
# [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
7420
|
+
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
7171
7421
|
# If the incremental authorization fails, a
|
7172
|
-
# [card_declined](https://stripe.com/docs/error-codes#card-declined) error returns, and no other
|
7422
|
+
# [card_declined](https://docs.stripe.com/docs/error-codes#card-declined) error returns, and no other
|
7173
7423
|
# fields on the PaymentIntent or Charge update. The PaymentIntent
|
7174
7424
|
# object remains capturable for the previously authorized amount.
|
7175
7425
|
#
|
7176
7426
|
# Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
|
7177
7427
|
# After it's captured, a PaymentIntent can no longer be incremented.
|
7178
7428
|
#
|
7179
|
-
# Learn more about [incremental authorizations](https://stripe.com/docs/terminal/features/incremental-authorizations).
|
7429
|
+
# Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations).
|
7180
7430
|
def increment_authorization(intent, params = {}, opts = {})
|
7181
7431
|
request(
|
7182
7432
|
method: :post,
|
@@ -7202,7 +7452,7 @@ module Stripe
|
|
7202
7452
|
#
|
7203
7453
|
# You can retrieve a PaymentIntent client-side using a publishable key when the client_secret is in the query string.
|
7204
7454
|
#
|
7205
|
-
# If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://stripe.com/
|
7455
|
+
# If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api#payment_intent_object) object reference for more details.
|
7206
7456
|
def retrieve(intent, params = {}, opts = {})
|
7207
7457
|
request(
|
7208
7458
|
method: :get,
|
@@ -7213,7 +7463,7 @@ module Stripe
|
|
7213
7463
|
)
|
7214
7464
|
end
|
7215
7465
|
|
7216
|
-
# Search for PaymentIntents you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
7466
|
+
# Search for PaymentIntents you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
|
7217
7467
|
# Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
7218
7468
|
# conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
7219
7469
|
# to an hour behind during outages. Search functionality is not available to merchants in India.
|
@@ -7233,7 +7483,7 @@ module Stripe
|
|
7233
7483
|
# PaymentIntent again. For example, updating the payment_method
|
7234
7484
|
# always requires you to confirm the PaymentIntent again. If you prefer to
|
7235
7485
|
# update and confirm at the same time, we recommend updating properties through
|
7236
|
-
# the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) instead.
|
7486
|
+
# the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) instead.
|
7237
7487
|
def update(intent, params = {}, opts = {})
|
7238
7488
|
request(
|
7239
7489
|
method: :post,
|