我正在使用codeigniter并寻找Skrill支付网关的集成,但没有从任何地方获得确切的信息。我已经按照示例中的步骤进行了操作,但它不会重定向到我的状态url(CodeIgniter之外)。
我已经用下面的代码尝试了另一个例子,但它也不起作用
$config['pay_to_email']="abcdef@gmail.com";
$config ['status_url'] = 'http://myserver/response.php';
$config ['language'] = 'EN';
$config ['amount'] = '1';
$config ['currency'] = 'USD';
$config ['return_url_text'] = 'Return to response.php';
$config ['return_url'] = 'http://myserver/response.php';
$config ['cancel_url'] = 'http://myserver/response.php';
$config ['detail1_description'] = 'Membership';
$url='https://www.moneybookers.com/app/payment.pl?';
$vars=http_build_query($config);
header('LOCATION:' . $url. $vars);
如果我在服务器上运行上面的文件,那么它也不能正常工作,也不能重定向到response.php。
创建视图并发送数据。。。这只是的一个例子
<html>
<head>
<title> Payment</title>
</head>
<body>
<center>
<?php
$vars['pay_to_email']="abcdef@gmail.com";
$vars['status_url'] = 'http://myserver/response.php';
$vars['language'] = 'EN';
$vars['amount'] = '1';
$vars['currency'] = 'USD';
$vars['return_url_text'] = 'Return to response.php';
$vars['return_url'] = 'http://myserver/response.php';
$vars['cancel_url'] = 'http://myserver/response.php';
$vars['detail1_description'] = 'Membership';
?>
<form action="https://www.moneybookers.com/app/payment.pl" method="post">
<?php foreach($vars as $key=>$var){ ?>
<input type="hidden" name="<?=$key?>" value="<?=$var?>"/>
<?php } ?>
<input type="submit" value="Pay!"/>
</form>
</center>
<script language='javascript'>document.redirect.submit();</script>
</body>
</html>