dw.extensions.payments.SalesforcePaymentsMgr
Confirms a new payment intent using the given payment method, and associates it with the given order.
Creates an Adyen payment intent using the given information, and associates it with the given order.
Creates a payment intent using the given information, and associates it with the given basket.
Creates a PayPal order 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.Handles the given additional Adyen payment details and associates the associated payment with the given order, if applicable.
The PayPal order must be in a status that supports authorization. See the PayPal documentation for more details.
'error' contains the PayPal error information, if it is available in the response.
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 order payment instrument must be in a state that supports capture.
The amount must be less than or equal to the amount available to capture.
The following Transaction properties are supported:
reference- optional reference for the transaction, for example order number
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.
The PayPal order must be in a status that supports capture. See the PayPal documentation for more details.
'error' contains the PayPal 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- optionaltrueif the credit card payment should be automatically captured at the time of the sale, orfalseif 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 an Adyen payment intent using the given information, and associates it with the given order.
The following Payment Intent properties are supported:
type- required payment method type, such as SalesforcePaymentMethod.TYPE_CARDcardCaptureAutomatic- optionaltrueif the credit card payment should be automatically captured at the time of the sale, orfalseif the credit card payment should be captured laterstorePaymentMethod- optionaltrueif the payment method should be stored for future usage, orfalseif not
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.
true if an Adyen shopper reference must be associated with the transaction and needs to be created if it does not already exist for the given ecom customer or false a shopper reference does not have to be associated with the transaction. A customer is required if storing a payment method for future usage or using an existing stored payment method.
'paymentintent' contains the payment intent, if it is available in the Adyen response. Status detail 'error' contains the Adyen 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- optionaltrueif the credit card payment should be automatically captured at the time of the sale, orfalseif the credit card payment should be captured latersetupFutureUsage- optional future usage setup value, such as SalesforcePaymentIntent.SETUP_FUTURE_USAGE_ON_SESSION
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.
If setupFutureUsage is provided it will be used to prepare the payment to be set up for future usage
at confirmation time. When set, this future usage setup value must match the value used at confirmation time.
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.
Creates a PayPal order using the given information, and associates it with the given basket.
The following PayPal order properties are supported:
fundingSource- required funding source, such as SalesforcePayPalOrder.TYPE_PAYPALintent- optional order capture timing intent, such as SalesforcePayPalOrder.INTENT_AUTHORIZE or SalesforcePayPalOrder.INTENT_CAPTUREshippingPreference- optional shipping preference, such as"GET_FROM_FILE"userAction- optional user action, such as"PAY_NOW"
If intent is provided it is used to determine manual or automatic capture, and otherwise the default
card capture timing set for the site is used.
'paypalorder' contains the PayPal order, if it is available in the PayPal response. Status detail 'error' contains the PayPal error information, if it is available in the response.
null or undefined, or there is configuration missing that is required to retrieve the saved payment methods
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 configuration missing that is required to retrieve the saved payment methods
Handles the given additional Adyen payment details and associates the associated payment with the given order, if applicable.
Pass the state data from the Adyen onAdditionalDetails event as-is, without any encoding or other
changes to the data or its structure. See the Adyen documentation for more information.
'adyenpayment' contains the payment details, if it is available in the Adyen response and the response resultCode is 'Authorised'. Status detail 'error' contains the Adyen error information, if it is available in the response.
The order payment instrument must be in a state that supports refund.
The amount must be less than or equal to the amount available to refund.
The following Transaction properties are supported:
reference- optional reference for the transaction, for example order number
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.
null or undefined, or there is configuration missing that is required to delete the saved payment method
The following payments zone properties are supported:
countryCode- optional country code of the shopper, ornullif not knowncurrency- optional basket currency, ornullif not known
The order payment instrument must be in a state that supports reversal.
The following Transaction properties are supported:
reference- optional reference for the transaction, for example order number
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- optionaltrueif the credit card payment should be automatically captured at the time of the sale, orfalseif 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.