2013-11-15 107 views
-1

我需要整合ebs支付網關。我正在尋找很多,但我可以找到解決方案。 響應使用POST方法提供給付款申請中ReturnURL參數下定義的URL。 $response['ResponseCode'] == 0表示交易已成功完成。除0值交易失敗外。我找不到$response['ResponseCode'] == 0使用PHP EBS支付網關集成

這裏我的代碼

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]); 
} 
} 
+0

你有什麼問題? – hammus

+0

只是我發現文章幫助我很多 – user3090955

+0

我沒有得到響應代碼 – user3090955

回答

0

我會明白究竟怎麼整合,EBC完成,並期待在現有的闊葉支付模塊作爲模板之一。

例如:

- 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) 

的支付網關提供將決定闊葉應該如何與它集成的許多不同的集成選項。 希望有所幫助。

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