URL Conventions Guide

Smart-Winners uses specific URL paths to identify important steps in the user journey. These URLs help track user behavior, trigger specific actions (e.g., analytics, notifications), or redirect users correctly. Below is an explanation of each convention and when to use it:


1. After a Successful Payment

  • URL: /payment-success

  • When to Use:
    Redirect the user to this URL immediately after a successful purchase, such as buying a lottery ticket or service.

  • Purpose:
    This page confirms that the transaction was successful. It can be used to display thank-you messages, receipt details, or start order processing.


2. Before Purchasing a Lottery Ticket

  • URL: /lottery-number-payment

  • When to Use:
    Direct the user to this page just before completing the lottery ticket purchase, typically after selecting numbers and clicking "Buy Now."

  • Purpose:
    This page allows users to review their numbers, confirm the price, and proceed with payment. It acts as a final step before the transaction.


3. After Signup, Before Email or Phone Verification

  • URL: /signup-verification

  • When to Use:
    Redirect the user to this page immediately after they complete the signup form but before they've verified their email or phone number.

  • Purpose:
    This page prompts users to verify their account by entering a code sent via email or SMS. It ensures user identity and account security.


 

Comments are closed