eddcaton Posted August 31, 2020 Share Posted August 31, 2020 Hey All, I have setup a Paypal API to handle the recurring payments on my website, once the payment is completed I get a token id and ba_token id return. I am storing this in a database, but wondered how people link this with a user table? I could use a cookie to store the user's id before payment and then get it once the payment is complete, but this would not work with the subsequent recurring payments. How do you go about sending the user id when a recurring payment happens? Any advise would be appreciated. Edd Quote Link to comment https://forums.phpfreaks.com/topic/311409-paypal-api/ Share on other sites More sharing options...
requinix Posted August 31, 2020 Share Posted August 31, 2020 When you submit the information to PayPal, you can give them some custom data. I suggest an order ID. Quote Link to comment https://forums.phpfreaks.com/topic/311409-paypal-api/#findComment-1581045 Share on other sites More sharing options...
eddcaton Posted August 31, 2020 Author Share Posted August 31, 2020 3 minutes ago, requinix said: When you submit the information to PayPal, you can give them some custom data. I suggest an order ID. Thanks for the reply, do you know if i can send this custom data with the PayPal SDK? Quote Link to comment https://forums.phpfreaks.com/topic/311409-paypal-api/#findComment-1581046 Share on other sites More sharing options...
requinix Posted August 31, 2020 Share Posted August 31, 2020 30 minutes ago, eddcaton said: Thanks for the reply, do you know if i can send this custom data with the PayPal SDK? I would be extremely surprised if you could not. Unless they renamed it, the field will be called "custom" something. Quote Link to comment https://forums.phpfreaks.com/topic/311409-paypal-api/#findComment-1581047 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.