Contains functionality for use with Commerce Cloud Payments. See Commerce Cloud Payments documentation for how to
gain access and configure it for use on your sites.
This class does not have a constructor, so you cannot create it directly.
Attaches the given payment method to the given customer. Use this method to attach a payment method of type
to a shopper who registers as a customer after placing an order, and
has affirmatively elected to save their card as part of the registration process. This method will throw an error
if passed incompatible payment method and/or customer objects.
payment method to attach to customer
customer whose payment method to attach
if there was an error attaching the payment method to the customer
Detaches the given payment method from its associated customer. Once detached the payment method remains
associated with payment intents in the payment account, but is no longer saved for use by the customer in future
payment method to detach from customer
if there was an error detaching the payment method from its customer
Returns a collection containing the payment methods attached to the given customer. The collection will be empty
if there are no payment methods attached to the customer, or there was an error retrieving the attached payment
customer whose payment methods to get
collection of attached payment methods
if the given customer is
Returns the payment intent for the given basket, or
null if the given basket has none.
basket to checkout and pay using Commerce Cloud Payments
The payment intent
if there was an error retrieving the payment intent for the basket
Returns the payment intent for the given order, or
null if the given order has none.
order paid using Commerce Cloud Payments
The payment intent
if there was an error retrieving the payment intent for the order
© Copyright 2000-2021, salesforce.com inc. All rights reserved. Various trademarks held by their respective owners.