function paypal_payment_ipn_post in PayPal for Payment 7
Processes an IPN request based on POST data.
1 string reference to 'paypal_payment_ipn_post'
- paypal_payment_ipn_menu in paypal_payment_ipn/
paypal_payment_ipn.module - Implements hook_menu().
File
- paypal_payment_ipn/
paypal_payment_ipn.module, line 31 - Contains hook implementations and global functions.
Code
function paypal_payment_ipn_post() {
$ipn_variables = $_POST;
foreach ($_POST as $ipn_variable => $value) {
$ipn_variables[$ipn_variable] = rawurldecode($value);
}
if (PayPalPaymentIPNController::acknowledge($ipn_variables) && PayPalPaymentIPNController::validate($ipn_variables)) {
PayPalPaymentIPNController::process($ipn_variables);
}
}