Skip to content

Instantly share code, notes, and snippets.

Avatar

Lynnell Emmanuel Neri lynnellneri

View GitHub Profile
View How To Process Instant Payment Notification (IPN) Messages.php
<?php
// STEP 1: read POST data
// Reading POSTed data directly from $_POST causes serialization issues with array data in the POST.
// Instead, read raw POST data from the input stream.
$raw_post_data = file_get_contents('php://input');
$raw_post_array = explode('&', $raw_post_data);
$myPost = array();
foreach ($raw_post_array as $keyval) {
You can’t perform that action at this time.