To begin the process, on the back end, you must call a Splitit API to Initiate an installment plan (it is best to do this on page load):
Add the SessionId to the body of the Initiate call, along with your Payment Terminal API Key. The Initiate call can also include specifics such as order details (capture strategy, amount, shopper information, billing address—mandatory for funded plans).
In your response from Initiate, isolate the CheckoutURL to send to the front end.
1. There are additional configuration options that you can use, seen in this interface:
Note that elementId is only used for custom overlays.
2. You can hide and destroy the IFrame, using .hide() and destroy(), respectively:
On the front end, you'll need to add the Payment Form IFrame library, configure your IFrame in a variable, and then trigger the IFrame with a UI element of your choice.