Inline trials flow
In order to generate an Inline trial checkout cart, it’s mandatory to have the following parameters in the inline script.
Mandatory parameters for the trial links
Signature: for building a Trial buy link it is required to generate a signature
Price (define trial price for the corresponding currency - 0 for free trial, higher than 0 for paid trial)
Period (define period – not less than 7 days)
Currency (define currency)
Product Code (define the product for which the trial is applied)
How your script should look like:
TwoCoInlineCart.cart.setCurrency('EUR');
TwoCoInlineCart.products.add({
code: 'ANTV_2016',
tperiod: 7,
tprices: {EUR: 5, RON: 20},
});
TwoCoInlineCart.cart.setSignature('520ba411696e37f1839145bfa793f7199d8d0295a228ea42dc20a3f39196e358');For more details on parameters setup, check here.
Limitations
The trial period/price applies to a single product.
The trial period can be a minimum of 7 days.
2Checkout uses the custom prices and ignores the per-product pricing configuration.
Supported payment methods: credit and debit cards, PayPal, and Direct Debit.
2Checkout automatically converts the trial to a paid subscription when the trial interval expires by charging shoppers based on the payment-on-file information. Customers can opt-out at any time using their myAccount.
Last updated
Was this helpful?