如何将Skrill集成到CodeIgniter中? [英] How to integrate Skrill in CodeIgniter?
本文介绍了如何将Skrill集成到CodeIgniter中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用codeigniter并希望集成Skrill付款网关,但没有从任何地方获得确切的信息。我已经按照示例中的步骤进行操作,但不是
I am using codeigniter and looking for integration of Skrill payment gateway but didn't get exact information from anywhere. I have already follow steps from example but it's not going to redirect on my status-url (outside of 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);
如果我在服务器上运行以上文件,那么它也将无法正常工作,并且无法重定向到response.php 。
If I run above file on server then also it's not working as well as not redirect to 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>
这篇关于如何将Skrill集成到CodeIgniter中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文