[英]How to integrate Skrill in CodeIgniter?
I am using codeigniter and looking for integration of Skrill payment gateway but didn't get exact information from anywhere.我正在使用 codeigniter 并寻找 Skrill 支付网关的集成,但没有从任何地方获得确切的信息。 I have already follow steps from example but it's not going to redirect on my status-url (outside of CodeIgniter).
我已经按照示例中的步骤操作,但它不会重定向到我的状态 url(在 CodeIgniter 之外)。
I have tried one another example with below code but it's also not working我用下面的代码尝试了另一个例子,但它也不起作用
$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);
If I run above file on server then also it's not working as well as not redirect to response.php.如果我在服务器上运行上面的文件,那么它也不能正常工作,也不能重定向到 response.php。
Create a view and send your data... This is an example only创建一个视图并发送您的数据...这只是一个例子
<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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.