techker Posted November 15, 2017 Share Posted November 15, 2017 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? Quote Link to comment https://forums.phpfreaks.com/topic/305665-paypal-variables/ Share on other sites More sharing options...
requinix Posted November 15, 2017 Share Posted November 15, 2017 Quote Link to comment https://forums.phpfreaks.com/topic/305665-paypal-variables/#findComment-1553822 Share on other sites More sharing options...
AzeS Posted November 15, 2017 Share Posted November 15, 2017 Quote Link to comment https://forums.phpfreaks.com/topic/305665-paypal-variables/#findComment-1553826 Share on other sites More sharing options...
techker Posted November 15, 2017 Author Share Posted November 15, 2017 LOL! im i that clear? Quote Link to comment https://forums.phpfreaks.com/topic/305665-paypal-variables/#findComment-1553833 Share on other sites More sharing options...
AzeS Posted November 15, 2017 Share Posted November 15, 2017 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. Quote Link to comment https://forums.phpfreaks.com/topic/305665-paypal-variables/#findComment-1553836 Share on other sites More sharing options...
requinix Posted November 15, 2017 Share Posted November 15, 2017 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=1You'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. Quote Link to comment https://forums.phpfreaks.com/topic/305665-paypal-variables/#findComment-1553848 Share on other sites More sharing options...
techker Posted November 15, 2017 Author Share Posted November 15, 2017 thx for the info. how can i gatter that info? Quote Link to comment https://forums.phpfreaks.com/topic/305665-paypal-variables/#findComment-1553850 Share on other sites More sharing options...
requinix Posted November 15, 2017 Share Posted November 15, 2017 How do you get the custom value? It comes to you in the same way that every other value comes to you. Quote Link to comment https://forums.phpfreaks.com/topic/305665-paypal-variables/#findComment-1553851 Share on other sites More sharing options...
techker Posted November 15, 2017 Author Share Posted November 15, 2017 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 Quote Link to comment https://forums.phpfreaks.com/topic/305665-paypal-variables/#findComment-1553852 Share on other sites More sharing options...
requinix Posted November 15, 2017 Share Posted November 15, 2017 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 Quote Link to comment https://forums.phpfreaks.com/topic/305665-paypal-variables/#findComment-1553853 Share on other sites More sharing options...
techker Posted November 15, 2017 Author Share Posted November 15, 2017 no i was just using there button system to generate a buy now..still new on paypal.. Quote Link to comment https://forums.phpfreaks.com/topic/305665-paypal-variables/#findComment-1553854 Share on other sites More sharing options...
requinix Posted November 15, 2017 Share Posted November 15, 2017 "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. Quote Link to comment https://forums.phpfreaks.com/topic/305665-paypal-variables/#findComment-1553855 Share on other sites More sharing options...
techker Posted November 15, 2017 Author Share Posted November 15, 2017 thats what i want.in the form to add user id that is selling the products so i can add it to a database. Quote Link to comment https://forums.phpfreaks.com/topic/305665-paypal-variables/#findComment-1553856 Share on other sites More sharing options...
requinix Posted November 15, 2017 Share Posted November 15, 2017 Then you have to set all that up first before bothering with this custom thing. I recommend IPN. Quote Link to comment https://forums.phpfreaks.com/topic/305665-paypal-variables/#findComment-1553858 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.