Populating Thank You Page with Variables - A ShareASale Integration Issue

Discussion in 'Integration' started by kevin muldoon, Nov 14, 2013.

  1. kevin muldoon

    kevin muldoon New Member

    Joined:
    Nov 4, 2013
    Messages:
    8
    I am trying to integrate ShareASale with Amember. I added the tracking information to my thanks.phtml template, however the value and payment ID variables are not being pulled.

    The email from ShareASale noted that:

    Are these the correct variables to use?

    I noticed that the thanks.phtml template already has a variable receipt_id which is called. Though I am not sure whether receipt id and payment id are the same thing.

    Any ideas on how I can populate the tracking code with the correct information.

    These are the only instructions ShareASale gives:
    ------------------------------

    Tracking Code details for PayPal Website Payments Standard
    Unfortunately, integrating with PayPal Website Payments Standard is more difficult than most shopping carts. You will need to setup their Payment Data Transfer system before integrating with ShareASale. See PayPal's documentation and sample code here:
    https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/pdt-intro-outside
    Unfortunately, ShareASale is unable to help in setting up the Payment Data Transfer system. If you require assistance you should contact PayPal directly.
    Once you have the Payment Data Transfer system running, you can use the following tracking codes in your Auto-Return script:
    ASP
    Response.Write("<img src=""https://shareasale.com/sale.cfm?amount=" & mcGross & "&tracking=" & txToken & "&transtype=SALE&merchantID=XXXX"" width=""1"" height=""1"">")
    PHP
    echo ("<img src=\"https://shareasale.com/sale.cfm?amount=$amount&tracking=$tx_token&transtype=SALE&merchantID=XXXX\" width=\"1\" height=\"1\">");
    Where you replace XXXX with your ShareASale merchant ID number.


    Please note there is currently a bug in the PayPal sample code for PHP. If you are running PHP, you will need to change the line that reads:
    $amount = $keyarray['payment_gross'];
    to this:
    $amount = $keyarray['mc_gross'];
  2. jmartin55

    jmartin55 aMember Pro Customer

    Joined:
    Feb 12, 2013
    Messages:
    37
    Aparently there is an Amember ShareASale plugin available, here is the email I got from Amember. I don't see it in my Amember 4.3.5

    ............

    Hello,

    Do you use version 4 of aMember?
    You can use build in shareasale-pixel plugin.
    You need just enable plugin and configure it (fill in your Merchant Id on
    configuration form)
    aMember CP -> Configuration -> Setup/Configuration -> Plugins (Other Plugins)

    Best Regards.

    ..........................

    Can anyone point me to where I can buy / download this ShareASale amember plugin? Thanks :)
  3. kevin muldoon

    kevin muldoon New Member

    Joined:
    Nov 4, 2013
    Messages:
    8
    It's available free somewhere on this forum. You should be able to find it somewhere via the search bar.

    If you are really struggling, email me through my blog and I'll send you the zip I have.
  4. tashworth

    tashworth New Member

    Joined:
    Aug 22, 2006
    Messages:
    8
    You should check the API/Lite documentation: Maybe this API call would be what you want to plugin for your variable Am_Lite::getInstance()->getPayments() .
  5. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    The best way to go is use standard ShareASale aMember plugin for it. This plugin do everything you need.
  6. rano

    rano New Member

    Joined:
    Aug 3, 2012
    Messages:
    1
    Where is the shareasale plugin ? I am searching this plugin and i do not find it.
  7. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
  8. rockstar12

    rockstar12 Member

    Joined:
    Nov 1, 2012
    Messages:
    45
    i am not able to find the plugin. can anyone please help me out?
  9. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295

Share This Page