Once you've installed Retain, you can simulate Paddle Retain interventions by running some commands in your browser console.
This lets you check that Paddle Retain is installed correctly, and gives you a chance to see what customers see when Retain is in action.
Before you begin
Paddle Retain only works on live accounts
Paddle Retain only works with live data. While you can initialize Paddle.js with Retain in sandbox accounts, Retain features aren't loaded there.
If you haven't already, include Paddle.js with Retain in your web app and on your commercial website. Paddle.js integrates with Retain, so you don't have to include a separate Retain script.
You can simulate Retain interventions even if you haven't set up Retain yet. We recommend that you set up Retain and configure payment recovery before testing.
Install the ProfitWell.js snippets on your web app and on your commercial website. See install ProfitWell.js on the Paddle Retain help center for more information.
We recommend that you set up Retain and configure payment recovery before testing.
Simulate payment recovery
You can simulate the payment recovery form that a customer sees when they click a Retain link and payment recovery notifications on a page where you've installed Paddle Retain.
- Go to a page where you've installed Paddle.js.
- Open your browser console.
- Type
Paddle.Retain.demo({feature: 'paymentRecoveryInApp'})to demo a payment recovery notification. - Type
Paddle.Retain.demo({feature: 'paymentRecovery'})to demo a payment recovery form.
The form that appears uses Paddle sandbox, so you may use test card details to simulate a successful or failed payment.
- Go to a page where you've installed the ProfitWell.js snippets.
- Open your browser console.
- Type
profitwell('cq_demo', 'in_app')to demo a payment recovery notification. - Type
profitwell('cq_demo', 'dunning')to demo a payment recovery form.
The form that appears uses Paddle sandbox, so you may use test card details to simulate a successful or failed payment.
Simulate Cancellation Flows
You can simulate Cancellation Flows on a page where you've installed Paddle Retain.
- Go to a page where you've installed Paddle.js for Retain.
- Open your browser console.
- Type and enter
Paddle.Retain.demo({feature: 'cancellationFlow'}).
- Go to a page where you've installed the ProfitWell.js snippets.
- Open your browser console.
- Type and enter
profitwell('cq_demo', 'cancellation_flow').
Simulate Term Optimization
You can simulate Term Optimization on a page where you've installed Paddle Retain.
- Go to a page where you've installed Paddle.js.
- Open your browser console.
- Type
Paddle.Retain.demo({feature: 'termOptimizationInApp'})to demo a Term Optimization notification. - Type
Paddle.Retain.demo({feature: 'termOptimization'})to demo a Term Optimization form.
- Go to a page where you've installed the ProfitWell.js snippets.
- Open your browser console.
- Type
profitwell('cq_demo', 'plan_upgrade', 'notification')to demo a Term Optimization notification. - Type
profitwell('cq_demo', 'plan_upgrade')to demo a Term Optimization form.
Simulate other features
Retain Reactivations and Retain Lockout aren't available for all billing platforms supported by Paddle Retain.
If you use a platform that supports Retain Reactivations and Retain Lockout, you can simulate them on a page where you've installed Paddle Retain.
Reactivations
- Go to a page where you've installed the ProfitWell.js snippets.
- Open your browser console.
- Type
profitwell('cq_demo', 'reactivation').
Lockout
- Go to a page where you've installed the ProfitWell.js snippets.
- Open your browser console.
- Type
profitwell('cq_demo', 'lockout').