vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Cyb - PayPal Donate (https://vborg.vbsupport.ru/showthread.php?t=201284)

majsm 07-02-2011 03:37 PM

I was trying to mod this product slightly to give credits upon donation. I was looking at the way the subscription format was and trying to implement it into the vb credits to give a user a certain amount of credits upon donating, however, I could not get it to insert the credits into the user table for the life of me upon confirmation.
AWCoding has a similar mod Credit Purchase System but it's far too advanced (too many options) for what I am doing.
There also needs to be a way to set up the PayPal IPN through this product so you only have to manually confirm a donor's donation 1 time.

mapleleaffans 08-06-2011 09:30 PM

Downloaded and installed! Thank you! :)

dmandem 08-24-2011 09:03 PM

Does this work on 4.1.5 and integrate with vbExperience?

Thanks.

EDIT: Sorry, didn't notice this was for vb3

amine13420 11-09-2011 09:18 PM

It's possible to add this option shown also for guest ?

i wan't do it but :(

sverdios 12-09-2011 09:02 AM

You can add an option to send a private message, when a subscription is about to conclude? ineteresante and would be very practical, and also that could disable (return to normal users group) automatically once the subscription conclude?

Simon Lloyd 09-21-2012 08:57 PM

Quote:

Originally Posted by gregg1ep00 (Post 1978473)
PROBLEM:
The subscriptions paypal url is incorrect. As an example, let's say I want to set up a $5 subscription for 3 months (meaning, $5 per month for 3 months). Currently the url is formed like this:

Code:

https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions&a3=5&p3=3&t3=M&no_note=1
Using the paypal documentation found here:


The way it's coded right now, I'm setting up a $5 subscription every 3 months, with NO recurrence. Meaning, I will only make one payment, then the profile will expire.



SOLUTION:
Here are the other variables that need to be set:



So, in English, I want to pay "a3" dollars every "p3" months for "srt" months.

Here's how the paypal url should look:
Code:

https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions&a3=5&p3=1&t3=M&src=1&srt=3&no_note=1

To fix, go to Admin CP->Plugins & Products->Plugin Manager, and edit Cyb - PayPal Donate - Ext. Search for:
Code:

$cybpp_ppurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions';
Then change:
Code:

$cybpp_ppurl .= '&a3='.$cybpp_get_amount[0];
$cybpp_ppurl .= '&p3='.$cybpp_get_amount[1];
$cybpp_ppurl .= '&t3=M';
$cybpp_ppurl .= '&no_note=1';

To this:
Code:

$cybpp_ppurl .= '&a3='.$cybpp_get_amount[0];
$cybpp_ppurl .= '&p3=1';
$cybpp_ppurl .= '&t3=M';
$cybpp_ppurl .= '&src=1';
$cybpp_ppurl .= '&srt='.$cybpp_get_amount[1];
$cybpp_ppurl .= '&no_note=1';


It really helps to copy/paste the contents into a text editor, make the changes, and copy/paste back into AdminCP.

That isn't correct, when you try that through to Paypal you get a message saying the link is incorrect!

Simon Lloyd 09-21-2012 09:02 PM

Valter, is there a way of only triggering the addition of the donation and the sending of the pm if the user has been sent to the "Thankyou page"?, if someone even looks at a donation and clicks through to paypal but doesn't complete it still gets entered as waiting for confirmation.

Simon Lloyd 09-24-2012 01:58 PM

Also if ANYONE other than admin try to use the donate link they get:
Fatal error: Call to undefined function print_stop_message() in /public_html/forumz/misc.php(100) : eval()'d code on line 2401

Any ideas how to cure this?

amine13420 11-07-2012 11:13 AM

Working well,

It have one problem:

When we move the member who donated to doner group,

it move right but the rank never change, stay the rank from the other usergroup,

how can we solve that?

amine13420 11-07-2012 02:04 PM

when subscribe and finish the delay of subscription, the member will be automatically back to the normal registred usergroup?


All times are GMT. The time now is 12:29 PM.

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.01729 seconds
  • Memory Usage 1,743KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_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