PDA

View Full Version : Subscription Hack - PayPal


Xtrm2Matt
12-14-2004, 01:42 PM
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
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
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:

------------------------------
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:

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:


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:


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
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
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:
<input type="hidden" name="do" value="order" />
Under that line, add:
<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
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.

Found it.

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

find:
<input type="hidden" name="do" value="order" />
Under that line, add:
<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:
<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
It obviously isn't stock as I'm using 3.0.3.



Thanks!! :D :D :D

I presume, that if I add this:
<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
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.


<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/showthread.php?p=779021#post779021

The Geek
12-17-2004, 06:34 AM
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/showthread.php?p=779021#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
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
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:

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: