Developer - SCI - Payment

Parameters

POST Parameters list
Parameter Type Value Required Description
sci_user int 12345678 Yes Your account id
sci_id string 33ebaf772c6e8374 Yes SCI id
receiver string U12345678 Yes Your purse
amount float 1.00, 15.25 Yes Amount to send in float type format
desc string Test No Transfer details
payment_id string ID-123 No Optional merchant reference number
up_1
up_2
up_3
up_4
up_5
string user defined value No User defined values
url_status string valid http url No User defined callback status url
url_success string valid http url No User defined callback success url
url_fail string valid http url No User defined callback fail url

Code Snippets

<?php
// Include lib
require_once 'path/to/entromoney/sci/sci.php';

// Sci config
$config = array();
$config['sci_user']	= 'ACCOUNT_ID';
$config['sci_id']	= 'SCI_ID';
$config['sci_pass']	= 'SCI_PASS';

// Call lib
try {
	$sci = new Paygate_Sci($config);
}
catch (Paygate_Exception $e) {
	exit($e->getMessage());
}

// Payment info
$input = array();
$input['sci_user'] 		= 'ACCOUNT_ID';
$input['sci_id'] 		= 'SCI_ID';
$input['receiver'] 		= 'U12345678';
$input['amount'] 		= '1.0';
$input['desc'] 			= 'Test';
$input['payment_id']	= 'ID-123';
$input['up_1'] 			= 'user_param_1';
$input['up_2'] 			= 'user_param_2';
$input['up_3'] 			= 'user_param_3';
$input['up_4'] 			= 'user_param_4';
$input['up_5'] 			= 'user_param_5';
$input['url_status'] 	= 'http://your_site/url_status.php';
$input['url_success'] 	= 'http://your_site/url_success.php';
$input['url_fail'] 		= 'http://your_site/url_fail.php';

// Create hash
$input['hash']			= $sci->create_hash($input);
?>

<form action="<?php echo Paygate_Sci::URL_SCI; ?>" method="post">
	<?php foreach ($input as $p => $v): ?>
		<input type="hidden" name="<?php echo $p; ?>" value="<?php echo $v; ?>">
	<?php endforeach; ?>
	
	<input type="submit" value="PAY NOW">
</form>