1 / 6
Sep 2009

I'm trying to get E-Junkie's notifications to work with my backend and I can't seem to get it working. (And yes, I've read the documentation page "Integrating E-junkie With 3rd-Party & Custom Services": http://www.e-junkie.com/ej/help.integration.htm)



My software application is using the open source Aquatic Prime framework for registration (http://www.aquaticmac.com). The long and short of it is that the Aquatic Prime PHP code accepts an IPN notification, then churns out a secure license file which gets emailed to the user. Shine (http://clickontyler.com/blog/2009/08/shine-an-indie-mac-dashboard) implements the Aquatic Prime stuff and adds a bunch of other features to it.







I have my E-Junkie account set up to send the Payment Variable Information to the correct URL. I've gotten E-Junkie properly implemented on my website and my server logs show a 200 response from my server when placing an order, so I know that E-Junkie is working properly. I can manually get my backend to send off a valid license file, so I know the PHP email is working. I can't, however, get the E-Junkie notification to trigger the license generation code automatically.



Does anyone have any experience integrating E-Junkie with Aquatic Prime or Shine that can point me in the right direction?

  • created

    Sep '09
  • last reply

    Apr '10
  • 5

    replies

  • 1.2k

    views

  • 3

    users

  • 3

    links

Offhand, I can think of two reasons your registration script might not accept our IPN-style Integration submissions: either it's trying/expecting to validate the IPN with PayPal (which would fail since we are not PayPal, and we already validate the original IPN with PayPal in the first place anyway), or it may be getting confused by the extra fields we add to the basic IPN data set, to pass certain order data we collect that PayPal does not.



I would suggest sending my speculations above to the Aquatic Prime tech support staff, along with a link to our Integration page, for them to consider (or just send them a link to this forum thread). They might be able to provide you with a modified PHP script, or give instructions for modifying it yourself, to workaround the issues I described or any other issues they may identify about using our Integration with their script.

Bingo, that was it. The provided PHP script was checking back to PayPal for verification. Once I took that out and just had it work with the POST data from E-Junkie, it worked just fine

7 months later
mindersoftworksBingo, that was it. The provided PHP script was checking back to PayPal for verification. Once I took that out and just had it work with the POST data from E-Junkie, it worked just fine





Hi mindersoftworks, first of all, thanks for asking this question as it's something I'm working on as well. I've removed the portion of the PHP script checking back to PayPal, and now need to start working on it to recognize the POST data from e-junkie and return the generated codes.



I'm wondering if you'd be willing to share how you did this. PHP is not my strong point, though with enough time I'm confident I'd eventually get it working. Would you consider posting a "template" of sorts? I think it would be a great help to many people (including myself).



Best,



Jonathan

1) Grab the latest Aquatic Prime code from maccode.googlecode.com



2) In the file AquaticPrimepayPal.php remove lines 13-73 and replace them with the following:



// get POST data

$product = $POST['itemname'];

$name = $POST['firstname']." ".$POST['lastname'];

$email = $POST['payeremail'];

$amount = $POST['mcgross'];

$count = $_POST['quantity'];

// RFC 2822 formatted date

$timestamp = date("r", strtotime($POST['paymentdate']));

$transactionID = $POST['txnid'];



3) Profit! :slight_smile:

mindersoftworks1) Grab the latest Aquatic Prime code from maccode.googlecode.com



2) In the file AquaticPrimepayPal.php remove lines 13-73 and replace them with the following:



...



3) Profit! :)





Many thanks!! This was a great help to get everything working. Appreciate your generosity~



Best,



Jonathan

NimbleHost.com