E-junkie Help

Redirecting buyers to a page on your own site, rather than the standard E-junkie Thank-you Page

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 > Account Preferences. This overrides any product-specific Redirection URL (see below for details) after checkout, and will happen regardless of payment completion status.

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 the following data parameters about that buyer's order; see Redirection Query Parameters below for details.

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 check the Redirection setting while adding or editing your product and enter the Redirection URL where indicated on a following screen.

This Redirection will occur after checkout if the buyer's payment is completed immediately and if you do not have a Common Thank-you Page URL (as explained above); the product-specific thank-you email we send to buyers will also include a link to access their redirection. If you have customized your E-junkie-generated thank-you page in any way, then the [%download_link%] included in the product's thank-you email would take the buyer to your customized E-junkie-generated thank-you page, where we would provide a link to reach the product's Redirection URL; otherwise, that link will redirect the buyer 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 custom/3rd-party 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: gc- for google checkout, au- for authorize.net, 2co- for 2checkout, cb- for clickbank and tp- for trialpay payments)
  • 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 > 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:
    <?php
    $hash=$_GET['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";
    $expected_hash=md5($clientid.$md5passwd.$url);
    if ($expected_hash != $hash) {
      exit;
    } 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.

E-junkie Help Sections:

Start 1 Week Free Trial

  • Just $5 per month
  • No setup fee
  • No transaction fee
  • No transaction limit
  • No bandwidth limit
Questions?
This page added by E-junkieChef on July 16th, 2008 @ 5:38 pm GMT -7
Updated by E-junkieGuru on February 1st, 2015 @ 3:31 pm GMT -7