Flex Fields - Amount change
Choose the new amount
Important security notice: This functionality is here for demo only. You should never expose it in production environment since any user could alter the plan amount this way. Change the plan amount securely from server side using backchannel communication to Splitit servers based on your internal logic.
Currency cannot be changed later.
Update ref order number
Relevant code example
After plan changes in backend, call the following method to update the amount:
var flexFieldsInstance = Splitit.FlexFields.setup({ ... }).ready(function () { ... }); function planAmountUpdatedOnMerchantSite(){ flexFieldsInstance.synchronizePlan(); }
To update ref order number, use the following snippet
function planAmountUpdatedOnMerchantSite(){ flexFieldsInstance.updateDetails({ refOrderNumber: newRefOrderNum }); }