Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Need Help getting the sale to record using the paypal buttons

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Need Help getting the sale to record using the paypal buttons

  • This topic has 16 replies, 2 voices, and was last updated 14 years, 8 months ago by dandan.
Viewing 2 posts - 16 through 17 (of 17 total)
← 1 2
  • Author
    Posts
  • October 23, 2010 at 3:34 am #25640
    amin007
    Participant

    Turned out the instruction wasn’t followed properly. The example code shows how to add the additional input fields to the button code:

    Direct/Plain/Hosted PayPal Button and Affiliate Plugin Integration

    Basically just add the following two lines to your button code (not put it when you create the button on PayPal:

    <input type="hidden" name="custom" value="<?php echo $_COOKIE['ap_id']; ?>">
    <input name="notify_url" type="hidden" value="http://www.example.com/wp-content/plugins/wp-affiliate-platform/api/ipn_handler.php" />

    Replace “example” with your own site URL.

    So the full button code should look something like the following (see how it is added in the last two lines?):

    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="7JK4AJCBQGJV6">
    <input type="image" src="https://www.paypal.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
    <img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
    <input name="custom" type="hidden" value="<?php echo $_COOKIE['ap_id']; ?>" />
    <input name="notify_url" type="hidden" value="http://www.your-domain.com/wp-content/plugins/wp-affiliate-platform/api/ipn_handler.php" />
    </form>

    October 23, 2010 at 4:09 am #25641
    dandan
    Member

    absolutely incredible! THANK YOU!!!!!!!

  • Author
    Posts
Viewing 2 posts - 16 through 17 (of 17 total)
← 1 2
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ