vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Reoccurring Paypal Subscriptions (https://vborg.vbsupport.ru/showthread.php?t=64834)

trainer 06-25-2004 05:31 PM

Quote:

Originally Posted by insanctus
It is not as much a bug as just not an option?


can you get back to me on the contest hack?

Amzadi 06-25-2004 05:43 PM

Quote:

Originally Posted by sketch42
I thought i would update anyone else experiencing the issue with the refunded payments.. i hope noone minds....



Here's the FIX clickity click click click

Thanks for the link Sketch42

Cold Steel 06-28-2004 05:22 AM

Installed. Thanks!

heynurse 07-20-2004 04:10 PM

Does anyone have this installed on 3.0.3? I'm having difficulties getting it to work correctly?

I'm installing this on 3.0.3 and I'm having a problem with this step:

Step 3. Open includes/functions_subscriptions.php

It says to find:
Code:

case 'paypal':
$form['action'] = 'https://www.paypal.com/cgi-bin/webscr';
$form['method'] = 'post';
$form['hiddenfields'] = "
<input type=\"hidden\" name=\"cmd\" value=\"_xclick\" />
<input type=\"hidden\" name=\"business\" value=\"$vboptions[ppemail]\" />
<input type=\"hidden\" name=\"item_name\" value=\"$title Subscription\" />
<input type=\"hidden\" name=\"item_number\" value=\"$item\" />
<input type=\"hidden\" name=\"amount\" value=\"$cost\" />
<input type=\"hidden\" name=\"currency_code\" value=\"$currency\" />
<input type=\"hidden\" name=\"no_shipping\" value=\"1\" />
<input type=\"hidden\" name=\"return\" value=\"$vboptions[bburl]\" />
<input type=\"hidden\" name=\"no_note\" value=\"1\" />";
break;

But I can't find that exactly, I'm sure the code was modified since this hack was writtne, the closest thing to it is this:

Code:

case 'paypal':
$form['action'] = 'https://www.paypal.com/cgi-bin/webscr';
$form['method'] = 'post';
$form['hiddenfields'] = "
<input type=\"hidden\" name=\"cmd\" value=\"_xclick\" />
<input type=\"hidden\" name=\"business\" value=\"$vboptions[ppemail]\" />
<input type=\"hidden\" name=\"item_name\" value=\"$title Subscription\" />
<input type=\"hidden\" name=\"item_number\" value=\"$item\" />
<input type=\"hidden\" name=\"amount\" value=\"$cost\" />
<input type=\"hidden\" name=\"currency_code\" value=\"$currency\" />
<input type=\"hidden\" name=\"no_shipping\" value=\"1\" />
<input type=\"hidden\" name=\"shipping\" value=\"0.00\" />
<input type=\"hidden\" name=\"return\" value=\"$vboptions[bburl]/$vboptions[forumhome].php\" />
<input type=\"hidden\" name=\"notify_url\" value=\"$vboptions[bburl]/subscriptions/paypal.php\" />
<input type=\"hidden\" name=\"custom\" value=\"$userinfo[username]\" />
<input type=\"hidden\" name=\"no_note\" value=\"1\" />";
break;

This is what is supposed to be what is to replace the first set of code above:
Code:

case 'paypal':
$form['action'] = 'https://www.paypal.com/cgi-bin/webscr';
$form['method'] = 'post';
/// Add In For Reacuring Payments
$paypalextra = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "subscription AS subscription WHERE subscriptionid=$subscriptionid");
if($paypalextra[reoccur]==0){// It is one time
$form['hiddenfields'] = "
<input type=\"hidden\" name=\"cmd\" value=\"_xclick\" />
<input type=\"hidden\" name=\"business\" value=\"$vboptions[ppemail]\" />
<input type=\"hidden\" name=\"item_name\" value=\"$title Subscription\" />
<input type=\"hidden\" name=\"item_number\" value=\"$item\" />
<input type=\"hidden\" name=\"amount\" value=\"$cost\" />
<input type=\"hidden\" name=\"currency_code\" value=\"$currency\" />
<input type=\"hidden\" name=\"no_shipping\" value=\"1\" />
<input type=\"hidden\" name=\"return\" value=\"$vboptions[bburl]\" />
<input type=\"hidden\" name=\"no_note\" value=\"1\" />";
}else{
$form['hiddenfields'] = "
<input type=\"hidden\" name=\"cmd\" value=\"_xclick-subscriptions\" />
<input type=\"hidden\" name=\"business\" value=\"$vboptions[ppemail]\" />
<input type=\"hidden\" name=\"item_name\" value=\"$title Subscription\" />
<input type=\"hidden\" name=\"item_number\" value=\"$item\" />
<input type=\"hidden\" name=\"currency_code\" value=\"$currency\" />
<input type=\"hidden\" name=\"ammount\" value=\"$cost\" />
<input type=\"hidden\" name=\"a3\" value=\"$cost\" />
<input type=\"hidden\" name=\"p3\" value=\"$paypalextra[length]\">
<input type=\"hidden\" name=\"t3\" value=\"$paypalextra[units]\">
<input type=\"hidden\" name=\"src\" value=\"1\">
<input type=\"hidden\" name=\"sra\" value=\"1\">
<input type=\"hidden\" name=\"no_shipping\" value=\"1\" />
<input type=\"hidden\" name=\"return\" value=\"$vboptions[bburl]\" />
<input type=\"hidden\" name=\"no_note\" value=\"1\" />";
 
}
break;

Does anyone have any updated instructions for this step in 3.0.3? Any assistance would be greatly appreciated. Thanks

nexialys 07-20-2004 04:27 PM

you just need to find the corresponding lines, and that's all... put the missing lines.

the new version of 3.0.3 is adding some lines in the paypal reoccuring process that may answer the bugs with the older versions, that's why...

heynurse 07-20-2004 05:27 PM

Cool, thanks for the advice, but I've tried messing with the code, I keep getting all kinds of errors, I am a complete novice and don't know what the heck I'm doing when it comes to programing.

$$$$ If someone wants to figure this out, I'd pay them for their time and share it with the forum for free :) I'll pay you by paypal.

heynurse 07-20-2004 05:53 PM

duplicate post removed... oops

RapCheck 07-28-2004 01:56 AM

heynurse, I just upgraded to 3.03 myself, and re-adding hacks I ran into the same problem. This is what I put in, and everything appears to be working fine. I don't receive any errors at all. Hopefully it's correct.


PHP Code:

 case 'paypal'
$form['action'] = 'https://www.paypal.com/cgi-bin/webscr';
$form['method'] = 'post';
/// Add In For Reacuring Payments
$paypalextra $DB_site->query_first("SELECT * FROM " TABLE_PREFIX "subscription AS subscription WHERE subscriptionid=$subscriptionid");
if(
$paypalextra[reoccur]==0){// It is one time
$form['hiddenfields'] = "
<input type=\"hidden\" name=\"cmd\" value=\"_xclick\" />
<input type=\"hidden\" name=\"business\" value=\"
$vboptions[ppemail]\" />
<input type=\"hidden\" name=\"item_name\" value=\"
$title Subscription\" />
<input type=\"hidden\" name=\"item_number\" value=\"
$item\" />
<input type=\"hidden\" name=\"amount\" value=\"
$cost\" />
<input type=\"hidden\" name=\"currency_code\" value=\"
$currency\" />
<input type=\"hidden\" name=\"no_shipping\" value=\"1\" />
<input type=\"hidden\" name=\"shipping\" value=\"0.00\" />
<input type=\"hidden\" name=\"return\" value=\"
$vboptions[bburl]/$vboptions[forumhome].php\" />
<input type=\"hidden\" name=\"notify_url\" value=\"
$vboptions[bburl]/subscriptions/paypal.php\" />
<input type=\"hidden\" name=\"custom\" value=\"
$userinfo[username]\" />
<input type=\"hidden\" name=\"no_note\" value=\"1\" />"
;
}else{
$form['hiddenfields'] = "
<input type=\"hidden\" name=\"cmd\" value=\"_xclick-subscriptions\" />
<input type=\"hidden\" name=\"business\" value=\"
$vboptions[ppemail]\" />
<input type=\"hidden\" name=\"item_name\" value=\"
$title Subscription\" />
<input type=\"hidden\" name=\"item_number\" value=\"
$item\" />
<input type=\"hidden\" name=\"currency_code\" value=\"
$currency\" />
<input type=\"hidden\" name=\"ammount\" value=\"
$cost\" />
<input type=\"hidden\" name=\"a3\" value=\"
$cost\" />
<input type=\"hidden\" name=\"p3\" value=\"
$paypalextra[length]\">
<input type=\"hidden\" name=\"t3\" value=\"
$paypalextra[units]\">
<input type=\"hidden\" name=\"src\" value=\"1\">
<input type=\"hidden\" name=\"sra\" value=\"1\">
<input type=\"hidden\" name=\"no_shipping\" value=\"1\" />
<input type=\"hidden\" name=\"return\" value=\"
$vboptions[bburl]\" />
<input type=\"hidden\" name=\"no_note\" value=\"1\" />"
;
 
}
break; 


por4x4 08-06-2004 02:26 PM

Trying to install this on 3.0.3, and am having trouble finding some of the code....

Instructions call to find -

Code:

function construct_payment($method, $cost, $currency, $subscriptionid, $title, $userid)
{
        global $vboptions;

But all I can find is this -

Code:

function construct_payment($method, $cost, $currency, $subscriptionid, $title, $userinfo)
{
        global $vboptions;

What to do?

sblum 08-06-2004 03:25 PM

I had the same problem, por4x4. I tried changing userid to userinfo and it didn't work. I'd get the paypal subscription and money, but their subscription was not activated.


All times are GMT. The time now is 05:52 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.01365 seconds
  • Memory Usage 1,774KB
  • 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_php_printable
  • (2)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