Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2010
    Posts
    1
    Plugin Contributions
    0

    Idea or Suggestion Alertpay addon. Solution: Getting orders to track.

    ALERTPAY payment module.

    • Getting orders to show in payment screen
    • Adjusting layout of payment method display
    • Using IPN with alertpay to track orders


    I read many links on this forum to come up with this generalised solution.
    I now have this module fully working on Zen Cart 1.3.8a

    The follwing instructions assume you BACK THINGS UP before you mess with stuff.

    1) Install the addon (simply copy the folders via ftp into your current zen cart folder structure on your webserver)

    2) Upload the gif from the addon folder to [wherever]includes/modules/payment

    3) Amend the code in [wherever]includes/modules/payment/alertpay.php as shown here (it's about half way down the file)

    //---- begin code ----

    function selection() {
    $img_alertpay = DIR_WS_MODULES .'payment/alertpay.gif';
    $logo_list = zen_image($img_alertpay,' AlertPay ','','','align="absmiddle"');
    return array('id' => $this->code,
    'module' => $this->title . '' .$logo_list);
    }

    //---- end code ----

    If you want to add extra text on the payment page do it like this

    (code elided...)
    'module' => $this->title . ' EXTRA TEXT FOR PAGE ' .$logo_list);
    (...code elided)


    Ok, that's "Adjusting layout of payment method display" complete...

    Now to get the orders tracking in the Admin page you need to setup your IPN with alertpay.

    First go to: admin > Modules > Payment and click on PayPal IPN.

    Copy the IPN address on the right, looks like:
    http://YOUR-WEBSITE-NAME.com/ipn_main_handler.php

    Next: Go here to setup your stuff with Alertpay
    https://www.alertpay.com/ManageIPN.aspx

    once you get past security set the IPN options to

    IPN Status: Enabled

    Allow Encrypted Payment Details (EPD): Disabled

    Alert URL: http://YOUR-WEBSITE-NAME.com/ipn_main_handler.php

    (we copied this from our paypal IPN settings in admin > Modules > Payment, so it would contain the correct name for your store )

    Now, Copy the IPN security code provided ( Eg. RNpE7osbVvx7mXmX)

    You can turn on test mode, if you like while you test, at this point.
    This will allow transactions to go through for 'zero money' at the Alertpay end, even if the transaction actually has a value associated with it... handy.

    Now return to admin > Modules > Payment > Paypal IPN

    Enter the code ( Eg. RNpE7osbVvx7mXmX) in the PDT Token (Payment Data Transfer).

    Here is a complete listing of the setting (and YES the Mode for PayPal web services doesnt matter, just ignore it)

    Requirements:
    *PayPal Account (click to signup)
    **Port 80 is used for bidirectional communication with the gateway, so must be open on your host's router/firewall
    *PHP allow_url_fopen must be enabled
    *Settings must be configured as described above.

    Enable PayPal Module
    False

    Business ID
    [email protected]

    PDT Token (Payment Data Transfer)
    ****************

    Transaction Currency
    Only GBP (or w/e you want)

    Payment Zone
    --none--

    Set Pending Notification Status
    Pending [1]

    Set Order Status
    Processing [2]

    Set Refund Order Status
    Pending [1]

    Sort order of display.
    0

    Page Style
    Primary

    Mode for PayPal web services

    Default:
    www.paypal.com/cgi-bin/webscr
    or
    www.paypal.com/us/cgi-bin/webscr
    or for the UK,
    www.paypal.com/uk/cgi-bin/webscr
    www.paypal.com/cgi-bin/webscr

    Debug Mode
    Off



    So, now go complete one order from end to end.

    after you hae confirmed it has appeared in your orders, try updating the order status etc... you should be good to go.

    I really, really, hope that this prevents someone else spending as long as i did getting this sorted out.



    Have a nice night instead, and think of me.

  2. #2
    Join Date
    Nov 2007
    Posts
    71
    Plugin Contributions
    0

    Default Re: Alertpay addon. Solution: Getting orders to track.

    This sounds to be just the ticket, thank you for taking the time to post this solution

  3. #3
    Join Date
    Apr 2010
    Posts
    1
    Plugin Contributions
    0

    customer issue Re: Alertpay addon. Solution: Getting orders to track.

    Thanks for your work, I set up the alertpay.
    But I have a problem to process the EUR, GBP, AUD payment. It works fine with USD.

    But in EUR, GBP, AUD, the actually payment is 100 EUR or GBP, when goes to Alertpay, it will become to 120 EUR or GBP or other higher amount. How can I solve this problem. Please help? thanks

  4. #4
    Join Date
    Nov 2008
    Posts
    4
    Plugin Contributions
    0

    help question Re: Alertpay addon. Solution: Getting orders to track.

    simonjohnroberts, Excellent work!

    Quote Originally Posted by louiswoo View Post
    Thanks for your work, I set up the alertpay.
    But I have a problem to process the EUR, GBP, AUD payment. It works fine with USD.

    But in EUR, GBP, AUD, the actually payment is 100 EUR or GBP, when goes to Alertpay, it will become to 120 EUR or GBP or other higher amount. How can I solve this problem. Please help? thanks
    -------------------------
    I got this issue too, when use some currency which worth less than USD,like AUD, as the actually payment is 100 AUD or CAD, when goes to Alertpay, it will become to 90 AUD or CAD or other lower amount.

    Anyone ever figured out this?

  5. #5
    Join Date
    Nov 2008
    Posts
    4
    Plugin Contributions
    0

    help question Re: Alertpay addon. Solution: Getting orders to track.

    Hi,simonjohnroberts
    I have a question about the alertpay.gif, when I done like you said, the picture shows on the right side of the text, how should I do to move it to the right side?

    Thanks very much.

    Quote Originally Posted by simonjohnroberts View Post
    ALERTPAY payment module.


    //---- begin code ----

    function selection() {
    $img_alertpay = DIR_WS_MODULES .'payment/alertpay.gif';
    $logo_list = zen_image($img_alertpay,' AlertPay ','','','align="absmiddle"');
    return array('id' => $this->code,
    'module' => $this->title . '' .$logo_list);
    }

    //---- end code ----

    If you want to add extra text on the payment page do it like this

    (code elided...)
    'module' => $this->title . ' EXTRA TEXT FOR PAGE ' .$logo_list);
    (...code elided)


    ..........

    Have a nice night instead, and think of me.
    Attached Images Attached Images  
    Last edited by hurrican; 7 May 2010 at 06:06 PM.

 

 

Similar Threads

  1. v151 Addon Template Causing SSL Problems-How to track it down?
    By machinerye in forum Basic Configuration
    Replies: 9
    Last Post: 2 Dec 2014, 10:28 PM
  2. Google Analytics can't track orders accurately!
    By ericgu in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 26 Dec 2009, 01:13 PM
  3. Downloads Orders Status Settings - An EZ Solution!
    By vivaknievel in forum Managing Customers and Orders
    Replies: 5
    Last Post: 3 Aug 2007, 09:16 PM
  4. Getting back on the right track
    By camay123 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 22 Aug 2006, 02:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR