vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - VSa - PayPal Donate (https://vborg.vbsupport.ru/showthread.php?t=236480)

Beor 04-13-2014 07:12 PM

Hello

We have a problem on my forum with date, i see d-m-y, how to fix?

Regards

VAG 04-19-2014 08:58 AM

Quote:

Originally Posted by Beor (Post 2493036)
Hello

We have a problem on my forum with date, i see d-m-y, how to fix?

Regards

Same here!

VAG 04-19-2014 09:00 AM

And another question from a n00b programmer: I am using a different Style and I don't see the donate button in my default style, only in the Test style which happens to be the renamed default style. How can I fix this? Donation page does also not show up under the quick links.

Thanks!

Gradonil_Ral 04-27-2014 07:59 PM

Is there a way to confirm the actual amount of the donations? I mean after the fees.

For example a 5 USD donation only gives you 4,5 USD. If I try to edit the amount to 4,5 USD, it changes to 4 USD...

~~Edit~~
Changing "amount" type to DECIMAL(6,2) added a .00 decimal to the amounts on the donation list, but if I try changing that to .50 via the plugin's "edit" option, it gets reset back to .00
If I edit the amount in the database itself, there's no problem with the decimals... What am I missing?

~~Edit2~~
Okay, I solved it.
Turns out I also had to go to "ACP>Plugins & Products>Plugin Manager>Product : VSa - PayPal Donate>VSa - PayPal Donate - Ext" and change both instances of:
Code:

'amount' => TYPE_UINT,
to:
Code:

'amount' => TYPE_DECIMAL,

Gradonil_Ral 05-11-2014 10:01 PM

This modification does not handle the donations as actual "donations" - they are billed as regular "payment".

Here's how you can change that:

Edit the xml (before installation) or go to ACP>Plugins & Products>Plugin Manager>Product : VSa - PayPal Donate>VSa - PayPal Donate - Ext (if you already have it installed) and:

1. Locate:
Code:

$vsapp_ppurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_xclick';
2. Replace it with:
Code:

$vsapp_ppurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_donations';

PayPal doesn't allow creating subscription links for donations. There are two ways of dealing with that:

1. We can remove the "amount" from the donation link which will allow people to manually add said amount on the PayPal's donation page. If you open PayPal's donation page without a set amount, you will be able to select "Make This Recurring (Monthly)"*, which will run until the Donator clicks unsubscribe in his PayPal account.

*Seems only possible when viewing PayPal with US, GB or AU locale selected.

Unfortunately, I can't readjust the modification to make this option work perfectly, but here is the bare minimum:

1.1. Locate:
Code:

$vsapp_ppurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions';
$vsapp_ppurl .= '&a3='.$vsapp_get_amount[0];
$vsapp_ppurl .= '&p3='.$vsapp_get_amount[1];
$vsapp_ppurl .= '&t3=M';
$vsapp_ppurl .= '&no_note=1';
$vsapp_ppurl .= '&sra=1';
$vsapp_ppurl .= '&src=1';
$vsapp_ppurl .= '&srt='.$vsapp_get_amount[1];

1.2. Replace it with:
Code:

$vsapp_ppurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_donations';
1.3. Locate:
Code:

$vsapp_ppurl .= '&tax=0';
$vsapp_ppurl .= '&shipping=0';
$vsapp_ppurl .= '&no_shipping=1';

1.4. Replace it with:
Code:

$vsapp_ppurl .= '&lc=US'; //Either US, GB or AU will work.
1.5. Find the vbphrase named vsapaypal_for_x_months and edit it to say:
Code:

each month (check the box on PayPal)
Done.

2. Use the original payment system for subscriptions.

Lemme explain how the subscription variables work so that you know how to best edit them for yourself:

a3 - the amount
p3 - duration of the subscription
t3 - unit of the duration - D, W, M, Y (Days, Weeks, Months, Years)
src - whether the payment is supposed to be recurring (0 - no, 1 - yes)
str - how many times should the payment recur (1-52)
sra - if the recurring payment fails, should PayPal try two more times before cancelling the subscription (0 - no, 1 - yes)
no_note - whether to ask for a note for the recurring payment (1 - no <-- always choose that for subscriptions)

So, if you locate:
Code:

$vsapp_ppurl .= '&p3='.$vsapp_get_amount[1];
And change that to:
Code:

$vsapp_ppurl .= '&p3=1';
Then the subscription will be 1 month long, and will repeat (the payment) the number of times the used chose from the dropdown box.

~~
It's probably possible to edit the mod to use a custom length of the subscription too, but I don't have a business PayPal account so I can't test that. (Payment Subscriptions are only available for business accounts).

maryx 08-06-2014 01:50 PM

I have been using Donate successfully for a while but about 6 months ago it stopped working. People can make a donation but it does not appear in my paypal account. Do you have any suggestions?
The paypal account is correct.

Novablaze 09-02-2014 03:12 PM

Hi iv have not long started using this app tho had it installed for a while and have noticed when people donate all goes threw but it does not show up on the View Donations page any advice?

I also made the $vsapp_ppurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_donations'; change

amit3127440 09-15-2014 05:18 PM

Importing Product, Please Wait...

[:]

Transferring your previous Donations to a new version...

Fatal error: Call to a member function fetch_array() on a non-object in /home/abcdd/public_html/core/includes/adminfunctions_product.php(881) : eval()'d code on line 10

gbicar 10-05-2014 07:58 AM

1 Attachment(s)
everything is ok, but the date is wrong, suggestions?

EDIT:

fixed, replaced all formats d m y to %d%m%y
in the file xml ....

JesWhite 10-05-2014 01:45 PM

Quote:

Originally Posted by gbicar (Post 2517725)
everything is ok, but the date is wrong, suggestions?


EDIT:

fixed, replaced all formats d m y to %d%m%y
in the file xml ....


i changed ...
everything good but i want to use month custom day ...
but only this option not working.
working en language but i'm changing language but not working...


All times are GMT. The time now is 08:58 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.02075 seconds
  • Memory Usage 1,751KB
  • 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
  • (11)bbcode_code_printable
  • (2)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