开发者

does both google checkout and paypal return a transaction id?

once the user has paid using either google checkout or paypal, do you get a response back with the transacti开发者_Python百科on id?

can you then use their api to pull details on the transaction later on for reports?


If you use the appropriate API, yes.


Paypal uses a variable called TXN_ID (Transaction ID) for each transaction that is accessible to you when you turn on IPN (Instant payment notification).

IPN examples can be found at: https://www.paypal.com/us/cgi-bin/webscr?cmd=p/pdn/ipn-codesamples-pop-outside

Fairly comprehensive manuals are all available at the Paypal site, although I found them at times to be a bit confusing, there are some sites out there that offer alternative tutorials on integration (although, treat them with suspicion always and double check against the paypal API).

Along with txn_id, lots more variables about the transaction are returned for you to store and refer to at a later date, and some limited queries can be run or will be sent to you if variables in the transaction changed. (For example, a payment that got declined was retried and succeeded.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜