$_SESSION['cart']
PaypalIPNの前に取得したい
私が使用している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?
}