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)

kapoor22 06-06-2009 04:20 PM

---------------------------------------------------------------------------------------------------------------------------------------------------
DISCLAIMER - If you decide to use this information, use it at your own risk. There are no gurantee or assurance if this would work in your environment. It may end up screwing up your vbulletin or website environment, partially and/or fully. USE IT AT YOUR OWN RISK
---------------------------------------------------------------------------------------------------------------------------------------------------

Here is how I was able to fix the problem of recurring subscription payment with this Mod -

AFTER UNZIPPING THE DOWNLOADED FILE, I LOOKED FOR FILE CybPayPalDonate.xml. SEARCHED AND REPLACED THIS -

Code:

        $cybpp_get_amount = explode('|', $vbulletin->GPC['amount']);
        $cybpp_ppurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions';
        $cybpp_ppurl .= '&a3='.$cybpp_get_amount[0];
        $cybpp_ppurl .= '&p3='.$cybpp_get_amount[1];
        $cybpp_ppurl .= '&t3=M';
        $cybpp_ppurl .= '&no_note=1';


WITH -

Code:

        $cybpp_get_amount = explode('|', $vbulletin->GPC['amount']);
        $cybpp_ppurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions';
        $cybpp_ppurl .= '&a3='.$cybpp_get_amount[0];
        $cybpp_ppurl .= '&p3=1';
        $cybpp_ppurl .= '&t3=M';
        $cybpp_ppurl .= '&no_note=1';
        $cybpp_ppurl .= '&src=1';
        $cybpp_ppurl .= '&srt='.$cybpp_get_amount[1];
        $cybpp_ppurl .= '&sra=1';


After saving the changes in CybPayPalDonate.xml, I logged-on to VB Admin Control Panel
Plugins & Products > Manage Products > [Add/Import Product]
Browse and select the modified CybPayPalDonate.xml
Select the radio button - YES - for "Allow Overwrite" VERY IMPORTANT
Click 'IMPORT'

I backed up the table vb_cybppdonate, templates cyb_paypal_donbar and cyb_paypal_donate (since I had customizations), but none of this was not necessary for my environment.

I used the following Paypal HTML variables information available at -

Page 165 to page 173 of the "Website Payments Standard Integration Guide" pdf document available on Paypal website.
Logon to Paypal Business Account > Products & Services > Recurring Billing > Manual > Subscriptions and Recurring Payments Manual

Some of the relevant information about the Paypal HTML variables is also available at -
https://cms.paypal.com/us/cgi-bin/?c..._htmlvariables

The information about these variables to customize/fix this Mod (as shown above) were easily understood. Overall this is one of the best Mod I have seen.



Cybernetec,

Since others on this forum have asked for this fix for recurring subscription payment, would you like to review and consider these suggestions/changes to incorporate them in the next release of this Mod.

Thanks for your great work!

kapoor22

MJJPlaza.com 06-06-2009 05:08 PM

Quote:

Originally Posted by Cybernetec (Post 1823596)
Commas are used to separate amounts. Use dots.

Wrong: 5,5
Good: 5.5

When i manually add a donor in the donor's list, and i put e.g. "5.5" as an amount donated, tha hack automatically converts it into "5" in donor's list.

Maybe i have to enable decimal from admin cp?

Valter 06-06-2009 05:57 PM

Will be fixed in next version.

MJJPlaza.com 06-06-2009 06:13 PM

Quote:

Originally Posted by Cybernetec (Post 1824673)
Will be fixed in next version.

Ok thanks, when will be realesed the next version?

MjrNuT 06-09-2009 09:52 PM

Post #171, that is very well offered.

Since I made a feature request before and found out it was already apart of the system, I'll be careful this time as maybe I don't see it like the other one.

Is it possible to have a field to enter more of a message or even some instructions. For instance, stating that a payment will not actually occur until actually logging into Paypal Account and hitting Send Money.

Also, I think Paypal made a change recently or I just noticed this, but a person sending money is presented w/ two tabs for payment types > Services and Personal. This is the other reason I'd like some sort of INFO box to explain or suggest what the Donator/User might/should do.

I hope that made sense, if not please someone slap me silly. :P

Thanks

Valter 06-09-2009 10:04 PM

"Please choose an option below..." message which is shown above donate options can be changed to anything you want.

Also you can enable PM Notice in product options which is sent to users to let them know that their donations will be checked...

MjrNuT 06-09-2009 10:20 PM

Quote:

Originally Posted by Cybernetec (Post 1826692)
"Please choose an option below..." message which is shown above donate options can be changed to anything you want.

Also you can enable PM Notice in product options which is sent to users to let them know that their donations will be checked...

Thanks for your quick reply...but I guess I'm not finding where I can EDIT that message, which is great! Please explain...

The PM notice I have covered and does not really help me for my Informational needs though.

Thanks

Valter 06-09-2009 10:42 PM

Phrase Manager - for all text customizations/translations.

Markos 06-12-2009 07:00 PM

is there anyway that wen a new donation is confirmed it will post a thank you post in a certain section of the forum

Valter 06-12-2009 07:53 PM

Such feature may be added in next version, but no promises.


All times are GMT. The time now is 02:02 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.01426 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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