Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for payment_intent_data[transfer_data][amount] on Checkout Session #804

Merged
merged 1 commit into from
Feb 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions types/2019-12-03/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,11 @@ declare module 'stripe' {
}

interface TransferData {
/**
* The amount that will be transferred automatically when a charge succeeds.
*/
amount?: number;

/**
* If specified, successful charges will be attributed to the destination
* account for tax reporting, and the funds from charges will be transferred
Expand Down
4 changes: 2 additions & 2 deletions types/2019-12-03/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ declare module 'stripe' {
description?: string;

/**
* Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions. This can only be set when `confirm=true` is supplied.
* Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions, like [saving cards without authentication](https://stripe.com/docs/payments/save-card-without-authentication). This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
*/
error_on_requires_action?: boolean;

Expand Down Expand Up @@ -1080,7 +1080,7 @@ declare module 'stripe' {

interface PaymentIntentConfirmParams {
/**
* Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions.
* Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions, like [saving cards without authentication](https://stripe.com/docs/payments/save-card-without-authentication).
*/
error_on_requires_action?: boolean;

Expand Down