addCustomerCreditSourceToCheckout
Learn how to add a Customer Credit source to checkout.
Last updated
{
"isSuccess":{{boolean_value}},
"errorMessage": {{error_msg}}, //in case of error
"sourceId":{{sourceId}} //in case of success
}import addCustomerCreditSourceToCheckout from
"@salesforce/apex/digitalriverv3.DRB2B_CustomerCreditService.addCustomerCreditSourceToCheckout";handleAddCustomerCredit(event){
addCustomerCreditSourceToCheckout({
inputData : JSON.stringify({
cartId : this.webcartId,//cart Id
amount: amount
})
}).then((result) => {
// implement logic here in case of success
})
.catch((error) => {
// implement logic here in case of error
});
}