Skip to content

Instantly share code, notes, and snippets.


Paolo paokodo

  • Thailand
  • bangkok
View GitHub Profile
View How To Process Instant Payment Notification (IPN) Messages.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) {