vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Subscription Hack - PayPal (https://vborg.vbsupport.ru/showthread.php?t=72881)

Xtrm2Matt 12-14-2004 01:42 PM

Subscription Hack - PayPal
 
Hi all,

I'm looking for a hack or mod that will include the USERNAME of the person who is buying a subscription on my forums, so it'll look something like this when I go into my PayPal and view the transaction information:

Item Title: SUBSCRIPTION 2
Item Number: 2_
Forum Username: <USERNAME>
Forum Email: <EMAIL>
Date: 1 Dec. 2004
Time: 01:22:16 GMT
Status: Completed

Thanks,

Matt..

ericgtr 12-14-2004 03:15 PM

Quote:

Originally Posted by Xtrm2Matt
Hi all,

I'm looking for a hack or mod that will include the USERNAME of the person who is buying a subscription on my forums, so it'll look something like this when I go into my PayPal and view the transaction information:

Item Title: SUBSCRIPTION 2
Item Number: 2_
Forum Username: <USERNAME>
Forum Email: <EMAIL>
Date: 1 Dec. 2004
Time: 01:22:16 GMT
Status: Completed

Thanks,

Matt..

I agree, you have no idea who subscribed without doing a bunch of digging.

T3MEDIA 12-14-2004 03:33 PM

any word on this?

Xtrm2Matt 12-14-2004 04:39 PM

Quote:

Originally Posted by ericgtr
I agree, you have no idea who subscribed without doing a bunch of digging.

That's exactly my reason. Not sure if subscriptions are working for me at the moment.. people can buy stuff but it doesn't add them to the new usergroup. This doesn't bother me, but if someone buys it with a different email then the Forum one, I have to publically ask who bought this..

Any help?! I have a feeling I may have edit subscriptions.php or paypal.php?

Xtrm2Matt 12-15-2004 03:04 PM

No-one knows? Were supposed to have some tallented people here!

Pixelgrounds 12-15-2004 03:06 PM

Yes i would like to know this also, someone here must know how to do this :)

ConqSoft 12-16-2004 02:39 AM

Umm. It has their username already. :ermm:

ConqSoft 12-16-2004 02:42 AM

Example of one of mine:

E-Mail looked like this:
Quote:

------------------------------
Payment Details:
------------------------------

Total Amount: $20.00 USD
Currency: U.S. Dollars
Transaction ID: 1234567890
Quantity: 1
Item Title: Supporting Member Subscription Item Number: 6_5890
Custom: username was here
Buyer: realname was here
Online, in PayPal, looked like this:
Quote:

Item Amount:
$20.00 USD
Shipping:
$0.00 USD
Handling:
$0.00 USD
Quantity:
1
Item Title:
Supporting Member Subscription
Item Number:
6_5890
Custom:
username here
Date:
Dec. 11, 2004
Time:
18:04:00 PST
Status:
Completed

Xtrm2Matt 12-16-2004 05:55 AM

It doesn't with mine :devious:

Quote:

Item Amount:
$9.99 USD
Postage:
$0.00 USD
Packing:
$0.00 USD
Quantity:
1
Item Title:
SUBSCRIPTION
Item Number:
7_
Date:
9 Dec. 2004
Time:
23:02:58 GMT
Status:
Cleared
Email looked like this:

Quote:

Total Amount: $9.99 USD
Transaction ID: 123456789012345
Item Title: SUBSCRIPTION
Item Number: 7_
Buyer: REAL NAME
Any chance you could send me your subscriptions.php and paypal.php? Matt ['''at'''] Xtrm2Matt ['''dot'''] com

ConqSoft 12-16-2004 07:09 AM

Nope. They're stock 3.0.3 though, so you can get it from vBulletin.com.

The Geek 12-16-2004 08:22 AM

Quote:

Originally Posted by ConqSoft
Nope. They're stock 3.0.3 though, so you can get it from vBulletin.com.

It isnt stock 3.0.3 as I have the same problem. You are obviously passing a custom field with the paypal post. It shouldnt be too hard to modify, let me look into it as I would LOVE for this to be sorted. It can be impossible matching up transactions with members somethimes

The Geek 12-16-2004 09:40 AM

Quote:

Originally Posted by the nail geek
It isnt stock 3.0.3 as I have the same problem. You are obviously passing a custom field with the paypal post. It shouldnt be too hard to modify, let me look into it as I would LOVE for this to be sorted. It can be impossible matching up transactions with members somethimes

Found it.

in your subscription template (found in the Paid Subscriptions category)

find:
Code:

<input type="hidden" name="do" value="order" />
Under that line, add:
Code:

<input type="hidden" name="CUSTOM" value="$bbuserinfo[username]" />
Thats it. It doesnt come through in the email paypal sends you as confirmation, but it does appear in the PayPal transaction details.

Hope this helps ;)

Xtrm2Matt 12-16-2004 10:41 AM

Quote:

Originally Posted by ConqSoft
Nope. They're stock 3.0.3 though, so you can get it from vBulletin.com.

It obviously isn't stock as I'm using 3.0.3.

Quote:

Originally Posted by the nail geek
Found it.

in your subscription template (found in the Paid Subscriptions category)

find:
Code:

<input type="hidden" name="do" value="order" />
Under that line, add:
Code:

<input type="hidden" name="CUSTOM" value="$bbuserinfo[username]" />
Thats it. It doesnt come through in the email paypal sends you as confirmation, but it does appear in the PayPal transaction details.

Hope this helps ;)

Thanks!! :D :D :D

I presume, that if I add this:
Code:

<input type="hidden" name="CUSTOM" value="$bbuserinfo[email]" />
It'd also show their email address they use on the forum?

Thanks again, I've added it, will test later :)

The Geek 12-16-2004 10:51 AM

Quote:

Originally Posted by Xtrm2Matt
It obviously isn't stock as I'm using 3.0.3.



Thanks!! :D :D :D

I presume, that if I add this:
Code:

<input type="hidden" name="CUSTOM" value="$bbuserinfo[email]" />
It'd also show their email address they use on the forum?

Thanks again, I've added it, will test later :)

Your guess is as good as mine. Should do!

ConqSoft 12-16-2004 11:55 AM

Quote:

Originally Posted by the nail geek
It isnt stock 3.0.3 as I have the same problem. You are obviously passing a custom field with the paypal post. It shouldnt be too hard to modify, let me look into it as I would LOVE for this to be sorted. It can be impossible matching up transactions with members somethimes

I have not done anything to my subscription code/templates. Sorry to disappoint....

I haven't found the post where they said that they added it, and there may not be one. But here's where Scott discovered how to do it back in June.

http://www.vbulletin.com/forum/showthread.php?t=106843

Found this where someone used to get it, but now does not:
http://www.vbulletin.com/forum/showthread.php?t=123188

Maybe that person made a PayPal change that broke it. All I know is, it still works for me. Dunno.

ConqSoft 12-16-2004 12:08 PM

The above template change listed has not been made on my system, and when I go to my PayPal Paid Subsciption page, here's the source code for the form. So, it's obviously inserting the custom field from somewhere else, and not from that template.

Code:

                        <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
        <fieldset class="fieldset">
                <legend>Order Using PayPal</legend>
                <div style="padding:3px">
                        <div style="margin-bottom:3px">To pay for your subscription using <a href="http://www.paypal.com" target="_blank">PayPal</a> click the button below and follow the onscreen instructions.</div>

                        <div>
                               
                        <input type="hidden" name="cmd" value="_xclick" />
                        <input type="hidden" name="business" value="paypal@fireblades.org" />
                        <input type="hidden" name="item_name" value="FireBlades.org Supporting Member Subscription" />
                        <input type="hidden" name="item_number" value="6_1" />
                        <input type="hidden" name="amount" value="20.00" />
                        <input type="hidden" name="currency_code" value="USD" />
                        <input type="hidden" name="no_shipping" value="1" />
                        <input type="hidden" name="shipping" value="0.00" />

                        <input type="hidden" name="return" value="http://www.fireblades.org/forums/index.php" />
                        <input type="hidden" name="notify_url" value="http://www.fireblades.org/forums/subscriptions/paypal.php" />
                        <input type="hidden" name="custom" value="ConqSoft" />
                        <input type="hidden" name="no_note" value="1" />
                                <input type="submit" class="button" style="font-weight:normal" value="Order Using PayPal" />
                        </div>
                </div>
        </fieldset>
</form>


Xtrm2Matt 12-16-2004 12:16 PM

Well, I just tested this, it seems my Subscriptions arn't working at all.

I've added the URL right in PayPal so it can add custom fields, and I checked it in Test Communication:

Server communication to processor
Paypal
cURL Pass
Streams Pass

I get the payment, but it doesn't add them to the usegroup I specify (tried 2 different user groups now) and it doesn't add custom fields.

Bleh! Looks like a reinstall is in order.. or maybe I'll re-do the subscriptions table first, see if that helps..

0ptima 12-16-2004 11:28 PM

I have a similar problem with my subscriptions. I used to get the username in my emails, but not anymore. I posted this thread at VB.com
http://www.vbulletin.com/forum/showt...021#post779021

The Geek 12-17-2004 06:34 AM

Quote:

Originally Posted by 0ptima
I have a similar problem with my subscriptions. I used to get the username in my emails, but not anymore. I posted this thread at VB.com
http://www.vbulletin.com/forum/showt...021#post779021

actually, I am going to have to laugh now. It looks like the name IS passed along with the subscriptions!
I just looked at an old subscription detail in paypal and it is there but as mentioned above... it doesnt come through in the email confirmation.

I know for a time paypal was having problems with the custom field. It was mentioned on their paypaldev site. Looks like its working now though!

Man how funny.

Xtrm2Matt 12-17-2004 03:49 PM

Quote:

Originally Posted by the nail geek
actually, I am going to have to laugh now. It looks like the name IS passed along with the subscriptions!
I just looked at an old subscription detail in paypal and it is there but as mentioned above... it doesnt come through in the email confirmation.

I know for a time paypal was having problems with the custom field. It was mentioned on their paypaldev site. Looks like its working now though!

Man how funny.

Any idea if PayPal Custom_ fields are still having problems? I just emptied my subscription Table, re-did the group and tested... still no luck. The payment is sent, but no CUSTOM fields and their access isn't changed on the forum (they werent put in the new usergroup).

The Geek 12-17-2004 04:12 PM

Quote:

Originally Posted by Xtrm2Matt
Any idea if PayPal Custom_ fields are still having problems? I just emptied my subscription Table, re-did the group and tested... still no luck. The payment is sent, but no CUSTOM fields and their access isn't changed on the forum (they werent put in the new usergroup).

Sounds like another problem to me. Mine is working fine (someone just bought a subscription earlier today). I assume the custom fields are working as the buyers name was in the paypal details.

Sorry cant be of more help

Xtrm2Matt 12-17-2004 04:26 PM

I've noticed that once the payment is sent and it tries to redirect the person back to the forums, it comes up with:

Quote:

The page cannot be displayed
The page you are looking for cannot be displayed because the address is incorrect.
So, perhaps this is whats wrong? It's the right URL... If I click refresh it refreshes it correctly... but when it redirects back from PayPal.com it doesn't seem to work :ermm:


All times are GMT. The time now is 10:16 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.01269 seconds
  • Memory Usage 1,805KB
  • 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
  • (7)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete