Lost income due to COVID-19? E-junkie is providing 1 year free accounts to sell anything, anywhere. Click Here for more details.

What do you want to sell?

Redirection after payment

Redirect buyers to premium content or a custom thank-you page on your own site

We automatically generate a standard thank-you page for each buyer, where we present their download or redirection links, so you don't normally need to set up any thank-you page of your own. However, if you're not selling downloads, you may prefer to redirect buyers to a custom thank-you page on your site after they finish checkout, or you may still prefer to do this even if you are selling downloads, in which case buyers would need to wait to receive a thank-you email providing a link to their download page. You can also use Redirection at the product level to provide access to premium content at a "secret" URL on your site, rather than issuing a file download.

Redirection for every order

If you only want every buyer to reach the same thank-you page on your own Web site after checkout for all orders, bypassing the standard E-junkie thank-you page completely, you can provide your Common Thank-you Page URL by going to Seller Admin > Manage Seller Account > Edit Preferences. This overrides any product-specific Redirection URL (see below for details) after checkout, and will happen regardless of payment completion status.

Bear in mind the [%thankyou_link%] we include in your default Common Thank-you Email (and which you can add in any thank-you email template), would also go through this common redirection, as would the linked Transaction IDs in your transaction log (however, the Item Name of any digital item in the log would still bring up the thank-you/download page we generated for that item).

When we redirect each buyer to your Common Thank-you Page URL, we will append a query string to the end of your URL in standard GET syntax, disclosing some data about the buyer's order that you can use in generating the page with custom scripting. See the Redirection query parameters section below for details about the data we'd append to your URL.

Redirection per product

If you want buyers to be Redirected after payment to different pages on your site for different products (e.g., a page where you have a pay-per-view video embedded, or a premium members-only page on your site), you can tick the Redirection setting while adding or editing your product, which will reveal a field to enter your Redirection URL.

This Redirection will occur automatically after checkout only if:

  • The buyer's payment is completed immediately, and
  • The buyer purchased only that one product alone, and
  • You have not customized your E-junkie-generated thank-you page in any way, and
  • You do not have a Common Thank-you Page URL (as explained above).
Otherwise, the buyer would be redirected after checkout to your Common Thank-you Page URL (if you have one), or else they would see the starndard thank-you page we generate for you, with a button to access the Redirection URL for any product(s) they purchased which have one set up.

The product-specific thank-you email we send to buyers will also include a link to access their redirection, which bypasses your Common Thank-you Page URL). If you have customized your E-junkie-generated thank-you page in any way, this link would take the buyer to your customized E-junkie-generated thank-you page, where we would provide a button to reach the product's Redirection URL; otherwise, the emailed link will redirect the buyer to your URL automatically.

Product-specific Redirection cannot be combined with File Downloads for the same product, as they are mutually-exclusive types of digital-product delivery; a Download product delivers a file to the buyer, whereas a Redirection product delivers the buyer to the "secret" URL of some premium content on your site. You can also define the maximum Attempts within maximum Hours that each buyer can use their Redirection link.

Once the buyer has been redirected, that landing page URL is necessarily exposed in their browser, where they could bookmark it or share it with others to visit directly without going through the buyer's E-junkie redirection link. If you wish to prevent such direct visits, you would need to add custom scripting to your page to accomplish that; this discussion in our forum covers some approaches for doing that, or see the Developer Directory link at the top of our site to hire a professional programmer to set this up for you.

Redirection query parameters

When we send each buyer to your Redirection URL, we will append a query string to the end of your URL in standard GET syntax, disclosing the following data parameters about that buyer's order. Bear in mind, this is not a reliable method of transmitting order data to your system, as buyers may not click past the end of checkout to activate your redirection. We append this data to your URL solely so custom scripting in your site's redirection landing page can use those variables in the display output of the page itself (if you don't want to use these, they should typically be ignored). For a reliable method of transmitting order data to your system, please see our Webhook Integration feature.

Order Specific

These are appended to both Common Thank-you Page URLs and product-specific Redirection URLs:
  • payer_email - Buyer's email address
  • first_name - Buyer's first name
  • last_name - Buyer's last name
  • txn_id - Transaction ID generated by payment processor (for non-PayPal txns we add a prefix identifying the payment service, followed by a dash and then the ID generated by that service)
  • payment_status - Will normally be Completed, or may be Pending if you have disabled "Wait for pending payments..." in Seller Admin > Payment Preferences
  • gross - Order total (payment amount)
  • custom - Custom variable [if you had appended one to the purchase button's URL]
  • auction_buyer_id - If this was an eBay listing
  • auction_item_number - If this was an eBay listing
  • hash - To create this value, we take an md5 hash of your E-junkie password, then prepend your E-junkie client ID # (which you can find in Seller Admin > Manage Seller Account > View Account Summary) in front of that hash, and append the entire rest of the Redirection URL after it (including all the other query parameters documented here except for the &hash= parameter itself) then re-hash the whole thing in md5 again -- i.e., md5($client-id.md5("password").$redirection-url) -- e.g., your page might do something like this to validate the hash:
    $url="http://".$_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
    $url=str_replace ("&hash=".$hash, "", $url);
    $md5passwd="the md5 hash of your password";
    $clientid="your E-junkie Client ID";
    if ($expected_hash != $hash) {
    } else {
    // do something upon successful validation here

Item Specific

These are only appended to product-specific Redirection URLs (not to Common Thank-you Page URLs):
  • item_number - Item number of the product in E-junkie
  • quantity - Number of units ordered for that item
  • key - Code issued to buyer via Send Stored Codes or Send Generated Codes
  • sku - SKU of the item sold, only applicable if you configured Variants in Admin

Combining Redirections

If you have a Common Thank-you Page URL, then all buyers would be granted access to that URL after completing checkout, regardless of payment status or which specific item(s) they'd ordered. If they'd ordered an item which also had its own Redirection URL, we would also email them a thank-you email message for that product, containing a link to access the product-based Redirection.