Integration made easy

If you have any question you can ask below or enter what you are looking for!


Server Verification

Server verification

If you have setup a security key already from your settings, then this feature will remain enabled.

A checksum (md5) of the callback key is always sent from SoftPay with all IPN calls to your server, giving you the possibility to validate all IPN calls made to your server. The key may be up to 250 chars [a-z][A-Z][0-9] .


To verifiy a call in PHP you could do the following: 

<?php 
$callback_key 
$_POST['callback_key']; //This is sent from Soft-Pay 
define('CALLBACK_KEY',md5('yourkey')); 

if(
$callback_key == CALLBACK_KEY) { 
  
//go ahead 
} else { 
  
//mismatch, faked request? 
  
die('error'); } 
?>
Tags