Express Checkout Payload (Capture Full Payment)
Express Checkout requires the addition of an amount field to verify that the final amount matches the order total including the shipping and taxes.
As seen in the example below, you may capture payment immediately if you are using the Integrated Shipping flow and do not want to allow the total to be updated on a review page.
In addition to the required amount field, you will also need to provide some extra properties to the payload if you are using the Clearpay Checkout Widget to enable dynamic updates to the order total on a review page (e.g. selecting shipping options, increasing item quantities, applying promo codes):
isCheckoutAdjusted
: the state to indicate if changes have been made since the initial order creationitems
: the list of order items if it has changedshipping
: the shipping address if it has changedpaymentScheduleChecksum
: the latest paymentScheduleChecksum retrieved from your widget’s onChange call
If the final amount does not match the calculated amount (including shipping and taxes) or the paymentScheduleChecksum does not match the payment schedule displayed to the consumer, the request will be rejected.
The Data Payload Properties: