Converge-虚拟商户-PHP集成问题

Converge-虚拟商户-PHP集成问题,php,Php,我正在为我的网站使用converge的虚拟商户支付集成(使用PHP) 通过设置ssl_show_form=true,我集成了在我的站点上显示converge表单的方法(在此页面www.example.com/payment_form) converge表单按预期显示在我的站点上。但我无法提交表单值。由于表单操作请求我的站点(www.example.com/process.do)中的process.do文件,表单值不会发送到converge 我已经为测试事务使用了演示url。 这是我的密码 &l

我正在为我的网站使用converge的虚拟商户支付集成(使用PHP)

通过设置ssl_show_form=true,我集成了在我的站点上显示converge表单的方法(在此页面www.example.com/payment_form)

converge表单按预期显示在我的站点上。但我无法提交表单值。由于表单操作请求我的站点(www.example.com/process.do)中的process.do文件,表单值不会发送到converge

我已经为测试事务使用了演示url。

这是我的密码

<?php

//extract data from the post
extract($_POST);
//set POST variables
//$url = 'https://www.myvirtualmerchant.com/VirtualMerchant/process.do';
$url = 'https://demo.myvirtualmerchant.com/VirtualMerchantDemo/process.do';
//Modify the values from xxx to your own account ID, user ID, and PIN
//Additional fields can be added as necessary to support custom fields
//or required fields configured in the Virtual Merchant terminal
$fields = array(
'ssl_merchant_id'=>'xxxxx',
//VirtualMerchant Developer's Guide.docx Page 138 of 152
'ssl_user_id'=>'xxxxx',
'ssl_pin'=>'xxxxx',
'ssl_show_form'=>'true',
'ssl_result_format'=>'html',
'ssl_test_mode'=>'true',
//'ssl_receipt_apprvl_method'=>'redg',
//modify the value below from xxx to the location of your error script
//ssl_error_url?=>?xxx?,
//modify the value below from xxx to the location of your receipt script
//'ssl_receipt_apprvl_get_url'=>'xxx',
'ssl_transaction_type'=>urlencode('ccsale'),
//'ssl_amount'=>urlencode($ssl_amount),
//'ssl_card_number'=>urlencode($ssl_card_number),
//'ssl_exp_date'=>urlencode($ssl_exp_date),
//'ssl_cvv2cvc2_indicator'=>urlencode($ssl_cvv2cvc2_indicator),
//'ssl_cvv2cvc2'=>urlencode($ssl_cvv2cvc2),
//'ssl_customer_code'=>urlencode($ssl_customer_code),
'ssl_amount'=>500,
);
//initialize the post string variable
$fields_string = '';
//build the post string
foreach($fields as $key=>$value) { $fields_string .=$key.'='.$value.'&'; }
rtrim($fields_string, "&");
//open curl session
$ch = curl_init();
//begin seting curl options
//set URL
curl_setopt($ch, CURLOPT_URL, $url);
//set method
curl_setopt($ch, CURLOPT_POST, 1);
//VirtualMerchant Developer's Guide.docx Page 139 of 152
//set post data string
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);
//these two options are frequently necessary to avoid SSL errors with PHP
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
//perform the curl post and store the result
$result = curl_exec($ch);
//close the curl session
curl_close($ch);
//a nice message to prevent people from seeing a blank screen
echo "Processing";
?>

请帮帮我


谢谢。

虚拟商户的开发者指南中有一个东西

(第454页)

我在代码片段中使用了以下代码

echo "<html><head><base href='" . $url . "'></base></head>";
echo”“;
现在它开始工作了

谢谢