Jump to content

Recommended Posts

Hey guys when i create a button in step 3 click the box add variables..

 

so i tried different formats:

 

UserId=1

 

 

 

or even html and when i generate the code i don't see it?

 

 

 

and once this works how do i see the value?when the clients pays it will send me the value?

 

 

Link to comment
https://forums.phpfreaks.com/topic/305665-paypal-variables/
Share on other sites

Are you talking about the thing to generate form code for you? Apparently they are key=value, like Userid=1. But those are for PayPal options, not custom data.

 

IIRC if you want custom data then you need the "custom" variable. Like

custom=1
You'd get the "1" later as the custom value, which you assume will be the Userid. You can be fancier - more secure - than that, if you want.
Link to comment
https://forums.phpfreaks.com/topic/305665-paypal-variables/#findComment-1553848
Share on other sites

Again, you get it the same way you get everything from PayPal. Are you not already doing that? IPN? API call?

 

Either

a) You're sending data to PayPal and getting it back, in which case you can get the custom value, or

b) You're sending data to PayPal and not getting it back, in which case the custom value is irrelevant because you're not getting it back

Link to comment
https://forums.phpfreaks.com/topic/305665-paypal-variables/#findComment-1553853
Share on other sites

"custom" is for when you want to receive custom data from PayPal regarding the transaction. It's typically like the user ID and used by the originating site to grant access to whatever the user bought or signed up for. If you aren't receiving the transaction data back from PayPal then you don't need it.

Link to comment
https://forums.phpfreaks.com/topic/305665-paypal-variables/#findComment-1553855
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.