Jump to content
techker

Paypal Variables

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?

 

 

Share this post


Link to post
Share on other sites

thats paypal even the employes say that the sdk is shit... my suggestion is that you go to an other service provider that has paypal integrated i always use bs payone for example.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

How do you get the custom value? It comes to you in the same way that every other value comes to you.

Share this post


Link to post
Share on other sites

i know that but im passing from a page to a paypal page.so its paypal that is gattering the info..how do retrieve that info from paypal

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

no i was just using there button system to generate a buy now..still new on paypal..

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

thats what i want.in the form to add user id that is selling the products so i can add it to a database.

Share this post


Link to post
Share on other sites

Then you have to set all that up first before bothering with this custom thing.

 

I recommend IPN.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

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.