Confirms a new payment intent using the given payment method, and associates it with the given order.
Creates a payment intent using the given information, and associates it with the given basket.
null
if the given payment instrument has none.null
if the given basket has none.null
if the given order has none.null
if the given basket has none.null
if the given order has none.The payment intent must be in a status that supports cancel. See the Stripe documentation for more details.
The following Payment Intent property is supported:
cancellationReason
- optional payment intent cancellation reason
'paymentintent'
contains the payment intent, if it is available in the Stripe response. Status detail 'error'
contains the Stripe error information, if it is available in the response.
The payment intent must be in a status that supports capture. See the Stripe documentation for more details.
If amount
is not specified, the default is the full amount available to capture. If specified, the
amount must be less than or equal to the amount available to capture.
'error'
contains the Stripe error information, if it is available in the response.
Confirms a new payment intent using the given payment method, and associates it with the given order.
The order must be prepared to contain products, shipments, and any other necessary data, and must be calculated to reflect the correct total amounts. If the order is not for the same Customer as the given payment method, an error is thrown.
The specified payment method must be set up for off session future use or an error is thrown. iDeal and Bancontact implement reuse differently than other payment methods, but they can't be reused themselves.
The following Payment Intent properties are supported:
statementDescriptor
- optional statement descriptorcardCaptureAutomatic
- optionaltrue
if the credit card payment should be automatically captured at the time of the sale, orfalse
if the credit card payment should be captured later
If cardCaptureAutomatic
is provided it is used to determine card capture timing, and otherwise the
default card capture timing set for the site is used.
If statementDescriptor
is provided it is used as the complete description that appears on your
customers' statements for the payment, and if not a default statement descriptor is used. If a default statement
descriptor is set for the site it is used as the default, and otherwise the default statement descriptor for the
account will apply.
'paymentintent'
contains the payment intent, if it is available in the Stripe response. Status detail 'error'
contains the Stripe error information, if it is available in the response.
Creates a payment intent using the given information, and associates it with the given basket.
The following Payment Intent properties are supported:
type
- required payment method type, such as SalesforcePaymentMethod.TYPE_CARDstatementDescriptor
- optional statement descriptorcardCaptureAutomatic
- optionaltrue
if the credit card payment should be automatically captured at the time of the sale, orfalse
if the credit card payment should be captured later
The stripeCustomerRequired
must be set to true
if the payment will be set up for future
usage, whether on session or off session. If true
then if a Stripe Customer is associated with the
shopper then it will be used, and otherwise a new Stripe Customer will be created. The new Stripe Customer will
be associated with the shopper if logged into a registered customer account for the site.
If cardCaptureAutomatic
is provided it is used to determine card capture timing, and otherwise the
default card capture timing set for the site is used.
If statementDescriptor
is provided it is used as the complete description that appears on your
customers' statements for the payment, and if not a default statement descriptor is used. If a default statement
descriptor is set for the site it is used as the default, and otherwise the default statement descriptor for the
account will apply.
true
if a Stripe Customer must be associated with the payment intent, and would be created if it doesn't already exist, or false
if a Stripe Customer does not have to be associated with the payment intent
'paymentintent'
contains the payment intent, if it is available in the Stripe response. Status detail 'error'
contains the Stripe error information, if it is available in the response.
null
or undefined
null
or undefined
, or there is an error getting the off session payment methods
null
if the given payment instrument has none.
null
if the given basket has none.null
if the given order has none.null
if the given basket has none.null
if the given order has none.null
or undefined
, or there is an error getting the saved payment methods
The payment intent must be in a state that supports refund. This includes its status as well as any previous refunds. See the Stripe documentation for more details.
The following Payment Intent property is supported:
reason
- optional payment intent refund reason
If amount
is not specified, the default is the full amount available to refund. If specified, the
amount must be less than or equal to the amount available to refund.
'error'
contains the Stripe error information, if it is available in the response.
The payment intent must be in a status that supports update. See the Stripe documentation for more details.
The following Payment Intent properties are supported:
statementDescriptor
- optional statement descriptorcardCaptureAutomatic
- optionaltrue
if the credit card payment should be automatically captured at the time of the sale, orfalse
if the credit card payment should be captured later
If cardCaptureAutomatic
is provided it is used to determine card capture timing, and otherwise the
default card capture timing set for the site is used.
If statementDescriptor
is provided it is used as the complete description that appears on your
customers' statements for the payment, and if not a default statement descriptor is used. If a default statement
descriptor is set for the site it is used as the default, and otherwise the default statement descriptor for the
account will apply.
'paymentintent'
contains the payment intent, if it is available in the Stripe response. Status detail 'error'
contains the Stripe error information, if it is available in the response.