PayPal IPN
ianhaney28
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jul-06-2015
02:35 AM
Hi
I am trying to set up paypal ipn so that when users pay via PayPal, it stores the transactions in a MySQL database, the paypal form is a form that is set up for recurring payments for £3 per year
The coding I have for that is below
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <!-- Identify your business so that you can collect the payments. --> <input type="hidden" name="business" value=""> <!-- Specify a Subscribe button. --> <input type="hidden" name="cmd" value="_xclick-subscriptions"> <!-- Identify the subscription. --> <input type="hidden" name="item_name" value="Automatic Reminder - The Tax Elephants"> <!-- Set the terms of the regular subscription. --> <input type="hidden" name="currency_code" value="GBP"> <input type="hidden" name="a3" value="3.00"> <input type="hidden" name="p3" value="1"> <input type="hidden" name="t3" value="Y"> <!-- Set recurring payments until canceled. --> <input type="hidden" name="src" value="1"> <!--DO NOT PROMPT FOR SHIPPING ADDRESS--> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="cancel_return" value="http://www.taxelephants.uk/how-it-works.php"> <!-- Display the payment button. --> <button type="submit" value="Register" name="submit" title="You will be redirected to PayPal to pay and then once completed the payment, you will be returned back to the form page to enter your information" alt="PayPal - The safer, easier way to pay online" class="paypal_btnhdr">Register</button> <img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" > <!-- Return URL AFTER PAYMENT --> <input type="hidden" name="return" value="http://www.taxelephants.uk/register.php"> <input type="hidden" value="2" name="rm"> </form>
I created a payments table with the following
id
txnid
customer_email
payment_amount
payment_status
itemid
createdtime
just seeing if there is any php coding that works as tried a sample php coding I found but don't work
Kind regards
Ian
0 REPLIES 0

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.