<?php
$apiUrl = 'https://a...content-available-to-author-only...m.ph/api/confirm-payment';
"batch_id" => 9,
"event_id" => 1,
"pay_ref_no" => "231203023201IYC6994"
);
CURLOPT_URL => $apiUrl,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HEADER => false,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER
=> array( 'Content-Type: application/json',
'User-Agent: PHP cURL', // Generic user-agent string
),
CURLOPT_SSL_VERIFYPEER => false, // Add this line to disable SSL verification (temporary solution)
);
}
// Print the response
echo $response;
?>
PD9waHAKCiRhcGlVcmwgPSAnaHR0cHM6Ly9hLi4uY29udGVudC1hdmFpbGFibGUtdG8tYXV0aG9yLW9ubHkuLi5tLnBoL2FwaS9jb25maXJtLXBheW1lbnQnOwoKJGRhdGEgPSBhcnJheSgKICAgICJiYXRjaF9pZCIgPT4gOSwKICAgICJldmVudF9pZCIgPT4gMSwKICAgICJwYXlfcmVmX25vIiA9PiAiMjMxMjAzMDIzMjAxSVlDNjk5NCIKKTsKCiRvcHRpb25zID0gYXJyYXkoCiAgICBDVVJMT1BUX1VSTCA9PiAkYXBpVXJsLAogICAgQ1VSTE9QVF9SRVRVUk5UUkFOU0ZFUiA9PiB0cnVlLAogICAgQ1VSTE9QVF9GT0xMT1dMT0NBVElPTiA9PiB0cnVlLAogICAgQ1VSTE9QVF9IRUFERVIgPT4gZmFsc2UsCiAgICBDVVJMT1BUX0NVU1RPTVJFUVVFU1QgPT4gJ1BPU1QnLAogICAgQ1VSTE9QVF9QT1NURklFTERTID0+IGpzb25fZW5jb2RlKCRkYXRhKSwKICAgIENVUkxPUFRfSFRUUEhFQURFUiA9PiBhcnJheSgKICAgICAgICAnQ29udGVudC1UeXBlOiBhcHBsaWNhdGlvbi9qc29uJywKICAgICAgICAnVXNlci1BZ2VudDogUEhQIGNVUkwnLCAvLyBHZW5lcmljIHVzZXItYWdlbnQgc3RyaW5nCiAgICApLAogICAgQ1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