vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Paypal Donations (With Instant Payment Notification) -- RC1 (Public Testing) (https://vborg.vbsupport.ru/showthread.php?t=54436)

Cloudrunner 07-11-2003 03:35 AM

Bouncer --

Simply manually insert your information into the tables:

paypal_funds
paypal_contributors

and then change the donate field in your user table under your username to read '1'.

Heffe --

Currently, due to the way paypal has IPN setup with only one IPN per paypal account, there is no way to avoid this circumstance. I have asked paypal if they are planning on implementing a multiple site IPN, but thus far I have not received an answer.

99SIVTEC --

Yes, you can use this script globally across your sites, but it will require some slight modifications to the system, and requires that they all be on the same server. I don't think I'll be implementing this however due to time constraints on my part, but it would simply require that the other sites use the main site's paypal.php, ppfunc.php, and ppverify.php files, and also to read off the main site's database. It wouldn't be too hard to do I don't think, but I just don't have the time at the moment.

Shorty --

thank you for answering that one. You are correct. Paypal has a minimum fee of $0.01, so if you donate 0.01, and paypal deducts 0.01, and the mathematical law of 1-1=0 remains in effect, then it stands to reason that the total amount of the donation will be $0.00.

I am debating removing the fee paypal deducts from the user's donation to show what they intended to donate instead of the total minus the fee....still weighing the pros and cons of this scenario.

As for the rest of you ;)

I'll be gone this entire weekend, so further updates will not be occurring probably until next weekend. I have a highland games to go to. So while I'm out there drumming with the pipes in me kilt, I'll be thinking about...well...the competition ;)

Enjoy!

)O( Cloudrunner )O(

kaotic 07-12-2003 06:14 PM

First of all, thanks for the great hack. But I'm curious, do you still plan to integrate this with Lesane's Store Hack?

Cloudrunner 07-13-2003 08:08 AM

It is planned yes, but I've not had time to even sleep properly with the new baby....He's starting to sleep longer during the night, so hopefully I'll be able to sleep better myself shortly, when that happens, production will again be in ernest ;). Until then I'm working on it as I get the chance and can think straight...who'da thought that sleep was something you need to actually function properly...

sHORTYWZ 07-13-2003 10:39 AM

Alright, I have a strange problem

INSERT INTO paypal_contributors( userid, username, avatarurl, datelast, amount, guest_ip )
VALUES (

'166', 'Jaago', 'images/avatars/0/160.gif', NOW( ) , '23.97', NULL
)

MySQL said:

Duplicate entry '127' for key 1

Why would key 1 be entering 127, when the query says 166.

Here is what has happened recently :

I received an echeck payment, which went into the DB as "pending" - ever since then, no donations have been able to enter the db because of strange problems like this.. i have more info cloud, if you can send me an AIM msg when you get around.

Cloudrunner 07-13-2003 05:04 PM

Another update....Thanks for finding the prob Shorty.

run the following in your DB manager:

Code:

ALTER TABLE `paypal_contributors` CHANGE `userid` `userid` INT( 255 ) DEFAULT '0' NOT NULL;
Enjoy!

)O( Cloudrunner )O(

sHORTYWZ 07-13-2003 07:53 PM

Alright, just thought of something.. do funds/goals ever expire?

I don't know how to go about it.. but otherwise in about six months I'm going to have 2 pages of goals and my frontpage is going to say that we need to raise $1000 worth of donations..

bouncer18 07-13-2003 08:08 PM

yea i manually entered it into my DB

but what i was saying was maybe add an IF THEN statement to it so it atleast shows up as $0.00 rather then just $

Heffe2000 07-13-2003 10:28 PM

What would be the chance of this running on 2 seperate VB setups, on 2 different domains, via one paypal account? (I'm guessing that it won't, or would be too difficult...).

Could you use the donation name to route to a different paypal.php or something?

I'm setting up a new domain with a seperate VB running on it, and would like donations to show up on there & the older forums.

If paypal would allow you to have multiple accounts, this would be irrelevent, but since they restrict you to one (even if you have 2 people living in the same house with seperate accounts, you can have them blocked...).

0zone 07-14-2003 05:27 AM

great hack, thanks a lot!

0zone 07-14-2003 06:20 AM

Umm, one problem, the buttons aren't showing up.

http://www.avriltalk.com/forums/paypal.php


All times are GMT. The time now is 04:58 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01075 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete