How
to integrate E-junkie with 3rd party and custom services?
How can I have E-junkie post the order data to a URL on my
site? What services is E-junkie pre-integrated with?
|
| |
 |
Integrating e-junkie with 3rd party and custom services
All the order data for each product in the order can
be sent to script on your server in the background. To enable
this behavior, check "Send payment data to my server"
while adding or editing your product. Press NEXT/SUBMIT
and enter the URL in Payment Variable Information URL
field. All the order data will be sent to the URL you
have specified for each product in the order individually.
E-junkie will send all the order data using POST to your
URL only for successful completed payments. Currently,
if E-junkie server is unable to reach your server, it will
not retry.
- Order Specific
- payer_email
- txn_id - transaction
id of the payment. in some cases we add prefix to it
(gc- for google checkout, au- for authorize.net, 2co-
for 2checkout, cb- for clickbank and tp- for trialpay
payments)
- first_name
- last_name
- mc_gross - total amount
of payment
- custom - if you added
&custom=someValue to the url in the shopping buttons
you got from e-junkie
- shipping
- tax
- invoice - unique invoice
id that we generate
- for_auction
- auction_buyer_id
- address_city
- address_state
- address_zip
- address_country_code -
2 letter ISO country code
- Item Specific
- item_namex
- item_numberx
- item number you have set in product configuration
- quantityx -
quantity sold
- mc_gross_x
- sale price for this product * quantity sold
- option_name1_x
- (if applicable) if you are using any options
with your products, then this will contain first option's
name
- option_selection1_x
- (if applicable) if you are using
any options with your products, then this will contain
first option's value that buyer selected
- option_name2_x
- option_selection2_x
- option_name3_x
- option_selection3_x
- item_cart_position -
this will be posted once per notification and will
provide the position of the item for which this post
is being done. essentially, this will provide you the
value of x (see above) so you can pick the item
name, number etc. for this particular item
- sku - SKU of the item
sold, only applicable if you configured price affecting
variants in Admin
- Following variables are also tagged along the order
data we get from the payment processor
- handshake - md5(your_e-junkie_login_email+md5(your-e-junkie-password))
<?php
// you can use
this variable to ensure that the data coming is from
e-junkie server. you can of course use any language
of your choice
// put these
lines in top of your script to make sure that the data
you are getting is from e-junkie server
// if your e-junkie
login email and password is known to someone else, then
this verification will be moot
if ($_POST['handshake']!==md5("your@login.email".md5("your_e-junkie_password")))
{
exit;
}else {
//
you can do anything you want with the variables. i am
just going to email them to myself to illustrate the
point.
mail
("your@email.address.com","post
from e-junkie", print_r($_POST,true));
}
?>
- from_name - your display
name in e-junkie profile
- from_email - your
display email in e-junkie profile
- expiry_hours - (if
applicable) maximum number of hours you allow your download
links to be valid for in your product configuration
- max_downloads - (if
applicable) maximum downloads you allow in your product
configuration
- key - (if applicable)
stored or generated registration key sent to the buyer
|
| |
|
 |
What services is E-junkie
pre-integrated with?
For your convenience, E-junkie provides an interface which
you can use to interface with your SwiftCD account, Aweber and
do other things like sending email notifications to other email
addresses. It is an open ended interface and you can specify
a passthru URL where we can POST all the variables after our
script is done.
Note
You can pass a combination of all the parameters to o_plug.php
to make it do multiple things.
|
|
 |
 |
 |
|