Je veux obtenir mon précédent $_SESSION['cart']
au Paypal IPNPaypal IPN comment obtenir session
Exemple de IPN Code J'utilise. Tout fonctionne bien et le script a obtenu les données $_POST
de Paypal.
if (strcmp ($res, "VERIFIED") == 0) {
$subject = time();
$to = '[email protected]';
foreach ($_POST as $key => $value) {
$body .= "\n$key: $value";
}
mail($to, $subject, $body);
}
Question
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?
}