Redirecting buyer to a Thank-you Page on your own site, rather than the standard E-junkie Thank-you Page
Redirection for the complete order
If you only want the 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 (if you don't want to use these, they should typically be ignored):
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 always be Completed unless you have requested us to process the sales even for pending payments, in which case this will be Pending
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
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
}
?>
NOTE: 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 thank-you page can use those variables in the display output of the page itself. For a reliable method of transmitting order data to your system, please see our custom/3rd-party Integration feature.
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 has completed 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 the 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, the link will activate the Redirection automatically.
NOTE: Product-specific Redirection cannot be combined with File Downloads for the same product, as they are mutually-exclusive types of digital-product delivery. A File 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.
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 (if you don't want to use these, they should typically be ignored):
Order Specific
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
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
NOTE: 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. For a reliable method of transmitting order data to your system, please see our custom/3rd-party Integration feature.
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.