我想获得以前$_SESSION['cart']
的 Paypal IPN
我使用的IPN 代码示例。一切正常,脚本$_POST
从 Paypal 获取数据。
if (strcmp ($res, "VERIFIED") == 0) {
$subject = time();
$to = 'my@email.com';
foreach ($_POST as $key => $value) {
$body .= "\n$key: $value";
}
mail($to, $subject, $body);
}
问题
if (strcmp ($res, "VERIFIED") == 0) {
// 1. How to get my previous $_SESSION['cart'] here?
// 2. When I call my $_SESSION['cart'] here not ouput will come & it's empty.
// 3. Or this code only to get $_POST data from Paypal website only?
}