Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Paypal IPN - please help me
Old 10-02-2009, 06:24 AM Paypal IPN - please help me
Junior Talker

Posts: 1
Name: Hoang Van Duong
Trades: 0
Hello All,

I planing to add a "paynow" buton of paypal on my site.

Anyone will register a username on my website but not active. The user need active by login and make the payment. "pay now" button will appear for clicking to complete the payment after user log in.

I want to update the field Endday of mysql into (now + 30days) after user finish payments through paypal.
Now, I have been activated IPN but I don't know how to update mysql.

Please help me.

Here my sql:

CREATE TABLE `user` (
`id` bigint(20) NOT NULL auto_increment,
`uSername` text collate utf8_unicode_ci NOT NULL,
`pAssword` text collate utf8_unicode_ci NOT NULL,
`email` text collate utf8_unicode_ci NOT NULL,
`eNddate` date NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=45 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=45 ;

Here is original code of paypal button:

<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="8409810">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_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_US/i/scr/pixel.gif" width="1" height="1">
</form>
vanduongsuper is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-02-2009, 04:09 PM Re: Paypal IPN - please help me
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
You're really asking for someone to code a script for you. I'd suggest trying it yourself first and if you get stuck, asking for assistance. You'll want to start with the IPN documentation . Hopefully that gets you started.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Reply     « Reply to Paypal IPN - please help me
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09983 seconds with 12 queries