使用PHP进行EBS支付网关集成

时间:2013-11-15 04:10:26

标签: php codeigniter integration payment-gateway

我需要集成ebs支付网关。我正在寻找很多但我能找到解决方案。 使用POST方法将响应提供给付款请求中ReturnURL参数下定义的URL。 $response['ResponseCode'] == 0表示交易已成功完成。除0值交易失败。我找不到$response['ResponseCode'] == 0

这里是我的代码

if(isset($_GET['DR'])) {
 require('Rc43.php');
 $DR = preg_replace("/\s/","+",$_GET['DR']);

 $rc4 = new Crypt_RC4($secret_key);
 $QueryString = base64_decode($DR);
 $rc4->decrypt($QueryString);
 $QueryString = split('&',$QueryString);

 $response = array();
 foreach($QueryString as $param){
    $param = split('=',$param);
    $response[$param[0]] = urldecode($param[1]);
 }
}

1 个答案:

答案 0 :(得分:0)

我会理解与EBC的整合是如何完成的,并将现有的Broadleaf支付模块之一作为模板。

例如:

- Does EBC provide an API for direct server to server communication? (i.e. the Credit Card information is passed to your server and then relayed to the gateway? If so, take a look at http://docs.broadleafcommerce.org/curre ... odule.html
- Does EBC provide a mechanism for a Transparent Redirect or Silent Post? (i.e. the Credit Card form is sent directly to EBC thereby bypassing the merchant servers? If so, take a look at http://docs.broadleafcommerce.org/curre ... e.net.html
- Does EBC provide a mechanism for a Hosted Order Page? (i.e. you get redirected to EBC's servers to enter your credit card information. If so, take a look at http://docs.broadleafcommerce.org/curre ... odule.html)

支付网关提供的许多不同集成选项将决定Broadleaf应如何与其集成。 希望有所帮助。

参考:http://www.fetchflow.com/blog/authorize-net-invoicing