Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Paid Membership
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 15 September 2004 :  06:25:44  Show Profile
Hey, all, been away from here for a while due to some pretty hectic happenings offline. Only back for a flying visit at the moment to ask if anyone has implemented or if anyone knows of a subscription service for Snitz. We're looking for something automated that we could, preferrably, run through PayPal. Upon paying the member's record in the database would need to be updated with a custom M_LEVEL and the expiration date (custom field) of their subscription. I have the code to do this, the only thing I need to figure out is how to trigger the change once they've paid. Any help/insight greatly appreciated.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”

Podge
Support Moderator

Ireland
3775 Posts

Posted - 15 September 2004 :  09:15:37  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
If you're using PayPal, they (like other payment processors) use callbacks
to let you know when a payment has been received. Basically this would be an asp (or other) page on your website which would complete the registration.

You would need to download their API. It is a substantial read.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 15 September 2004 :  10:08:26  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
I have created a bunch of things using paypal and takes some work to get it into Snitz to make everything work smoothly so you do not have to do any work on the site for updating membership levels.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 15 September 2004 :  11:29:34  Show Profile
Thanks, guys.

Podge, you got linkage to their classic ASP API? I could only find the .NET one.

Brad, you mind if I contact you if I need more info?


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 15 September 2004 :  13:33:26  Show Profile  Visit MarcelG's Homepage
Erm, perhaps my Sponsoring members mod is something you could use as a start...I cannot seem to find the link to it here on snitz....
uts : http://forum.snitz.com/forum/topic.asp?TOPIC_ID=51932&SearchTerms=sponsoring
There it is.
It doesn't use a custom M_LEVEL but instead a new S_LEVEL (Sponsor level).
Go ahead, and 'abuse' it.
It doesn't have any PayPal integration in it though

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 15 September 2004 :  13:39:01  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Can only find the .net one there. There is an external link to an asp one but it just says "Coming soon!".

I suggest downloading the Developer Integration Guide on the page below and familiarise youself with how "Instant Payment Notification - IPN" works.

http://www.paypal.com/cgi-bin/webscr?cmd=p/pdn/getting-started-outside

I've been putting off integrating PayPal into one of my sites, if I get some code together soon I'll let you know.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 15 September 2004 :  13:55:01  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Shaggy your more welcome to shoot me over a email.

You need to be looking at PayPal IPN which basically you will see a buy now button which will send them to paypal to pay. As soon as they pay, paypal sends you back some info to a given url which you grab the info, send back to paypal to verify that its correct. Paypal will then verify that the payment was correct and then in your page you can upgrade the users membership. This is all done without the user ever knowing it because paypal sends the customer back to your site while there servers request the page that will do all the work. Hopefully this will make a little since to you.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 15 September 2004 :  19:14:27  Show Profile  Visit Etymon's Homepage

Welcome back, Shaggy!

Thanks for bringing up this discussion. It is of great interest to me as well.

Etymon
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 15 September 2004 :  19:35:28  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message

They just added support for bank accounts outside US recently too.
Been waiting for that for years.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 September 2004 :  04:21:24  Show Profile
Thanks for all the response, guys; much appreciated.

Yup, finally PayPal added support for those of us in Ireland, something I've been waiting for - and pestering them about - for a loooong time!

Found the IPN buried away in the Merchant Tools after clicking around for a while last night and looks simple enough to integrate (famous last words); just got to work out how to pass MEMBER_ID back and forth between PayPal and ourselevs, think that might be what the custom field is for. I'll keep ye all posted on how I get on and, once I get this new site and MeTV's redesign out of the way, I'll try to find time to package it up as a mod.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”

Edited by - Shaggy on 16 September 2004 04:42:14
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 16 September 2004 :  10:50:59  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Yes use the customid field to pass the members id. One of the hard parts about the script is that you can not see any asp errors in your IPN script because you can not run or process that page. Best way to test it is by using a .01 penny. You also need to make sure you check the amount that is sent thru because people will spoof the amount and you can refund the payment thru your ipn script if they send a invalid amount thru and then send them back a email to let them know. There are a ton of things you can do to make the ipn script work great to where it even handles refunds and everything.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 September 2004 :  11:16:45  Show Profile
Thanks, Brad; answered a few questions. Going to get started on it now and I'll probably get back to you in a couple of days for a bit more help with refunds etc., if that's OK?

One quickie right off the bat, though: PayPal recommend you keep track of transaction IDs to prevent people from spoofing prebiously completed transactions. How do you do this? Do you store them in a database table or use some other method?


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 16 September 2004 :  16:07:07  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
I have always stored them in a DB table then gives you the option to show the users what transactions have happened with there account.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 17 September 2004 :  12:13:33  Show Profile
Thanks for your help so far, Brad; really appreciate it.

Started working with the IPN yesterday and made quite a bit of progress in processing the subscription and making the necessary database changes and also with procesing refunds & cancelling the subscription.

Still a couple of things I'm not sure how to handle, which you can see commented out with '# here. Can you offer any insight as to what action I should be taking in each case?

Breakdown of error messages, just in case anything's unclear (knowing me, this is more than likely!).

HTTP Error (line 37): Action to take of PayPal does not return a 200 status message.

Invalid Item (line 80): Action to take if item number/name does not exist.

Invalid Member ID (line 83): Action to take if variable passed in custom field is not a valid MEMBER_ID.

Wrong Currency / Amount (line 86): Action to take if payment received is not €9.99 (subject to change).

Wrong E-mail Address (line 89): Action to take if email address payment was sent to is not one of ours.

Duplicate TXN ID (line 92): Action to take if Transaction ID is the same as a previously processed transaction.

Transaction Failed (line 95): Action to take if PayPal returns "Failed" in the payment_status field.

Invalid Transaction ID (line 117): Action to take if Parent Transaction ID is does not match any existing Transaction IDs in the database.

Already Refunded / Denied (line 120): Action to take if Parent Transaction ID is the same as the Transaction ID of a previously refunded subscription.

Error (line 123): Action to take if PayPal returns anything other than "Completed", "Pending", "Failed", "Denied" or "Refunded" in the payment_status field.

Error (line 126): Action to take if PayPal returns "INVALID" as the ResponseText.

Error (line 129): Action to take if PayPal returns anything other than "VERIFIED" or "INVALID" as the ResponseText.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 17 September 2004 :  16:56:03  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
The only ones I see with the ' # are things that look like the IPN is trying to be spoofed.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 21 September 2004 :  05:51:04  Show Profile
So, we don't need to take any action at our end with those errors?


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”

Edited by - Shaggy on 21 September 2004 05:51:31
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.42 seconds. Powered By: Snitz Forums 2000 Version 3.4.07