Page 1 of 1

Paypal API

Posted: Thu Mar 31, 2011 8:04 pm
by asaklex
Hi, everybody
I'm building a website for sale.I'm realy new in codes.
I'm using paypal API for checkout. In my PHP scripts,i used curl() function in order to manage the transaction with paypal.
My problem is that when i get the details of payment from paypal, i don't how to identify the customer which is online in order
to continue my script. Actually i build an array to get paypal's data. THe problem is on my side, how to retrieve the customer id
who logged on my website(that id is saved in my data base), before he is redirected to paypal.

Please help

Thank you

Re: Paypal API

Posted: Sun Apr 03, 2011 8:02 pm
by klandaika
Where is your API script running? Doesn't the customer press a button pay now, which makes the payment script to run. In which case the customer is probably logged in to your website. Which leads to the question how are you keeping track of the logged in customer?

Paypal provides custom fields in most of their APIs (i.e. when using DoDIrectPayment there is a field name CUSTOM which you can set to any value and it gets returned to you when payment goes through).
Which API call are you using exactly?