Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (user has to be redirected to Payu Money based on amount of service) {
- msg = "You will be redirected to PayU Money to pay the amount, <b>service for 30 Days Paid @ ₹20000";
- btn1 = "Continue";
- btn2 = "Cancel";
- } else {
- if (userHaveSufficientFunds) {
- msg = "Are you sure you want to subscribe to <b>service for 20 Days Free/Paid @ ₹1200";
- btn1 = "Continue";
- btn2 = "Cancel";
- } else {
- msg = isFreeService ? "You don't have sufficient <b>free funds</b> in your wallet to subscribe this service.<br/><br/>" +
- "You can earn by sharing the app to your friends and when they sign-up for an account you'll get the <b>free funds</b>." :
- "You don't have sufficient <b>paid funds</b> in your wallet to subscribe this service.";
- btn1 = isFreeService ? "Share Now" : "Recharge";
- btn2 = "Cancel";
- onclick of "Share Now" : Follow same approach as refer and earn
- onclick of "Recharge" : Take user to the payment gateway
- }
- }
Add Comment
Please, Sign In to add comment