paypal rest sdk - cancel a payment gives only token
<p>so i've seen some question about this subject but no good answer</p>

<p>after creating a paypal payment via paypal api, the client is being redirected to paypal for payment approval
the payment object also gets a "approved" and "cancelled" urls so that paypal could let my server know what course of action took place within the client's approval process</p>

<p>if the client has cancelled the payment, the http request being sent from paypal looks like this:
/customerCancelled?token=EC-32W183225U612050A
when "customerCancelled" is a get method in my server of course</p>

<p>what paypal claims should be done here is just to cancel the payment in my DB because they already cancel it on theirs</p>

<p>the problem is here - what the hack is this token? its not the paymentID (which is the primary key of the payments in my database)
how does it help me identifying the payment object that was canceled?</p>

<p>it takes a lot of time until paypal answers questions.. so if anyone here has got a clue that would be helpful</p>

<p>thanks</p>