getAmountRemainingforCheckout
Learn how to get the remaining amount available for checkout.
Use this global method to get the remaining customer credit amount that the shopper can contribute to the checkout.
Sending a request
This method accepts parameters in JSON string format. You need to pass the cartId
with this method.
Parameter | Required/Optional | Description |
---|---|---|
| Required | The Salesforce ID for the |
Receiving a response
You'll see the following parameters in the response.
Parameter | Description |
---|---|
| This global method returns a Boolean value where:
|
| The amount remaining to be contributed to the checkout. A customer credit source can be created for an amount less than or equal to this value. |
| The currency code of the checkout |
| If the system returns an error and the value for
|
Calling the global method from a custom component
Import the getAmountRemainingforCheckout
method into your custom component javascript file with digialriverv3
as the namespace as shown below.
Call the global method from a custom JavaScript file by passing the cartId
as shown below.
Last updated