我是woocommerce的新手,我真的需要一些帮助...我的银行发给我一个付款结帐代码,我希望将它整合到woocommerce结帐页面中...
附加的结帐页面需要来自woocommerce的付款参数,例如paymentTotal,referenceNo,currency,purchaseDescription,transactionType..etc
我如何将woocommerce checkout整合到我的银行样本结账页面?
<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Mastercard MIGS VAS Integration demo - checkout page</title>
</head>
<body>
<h1>Example MIGS VAS Server Hosted Merchant Integration - Checkout Page</h1>
<form action="postrequest.php" method="POST">
<div>
<p>Purchase an Item</p>
<table>
<tr>
<td><label for="paymentAmount">Sale Base Units</label></td>
<td><input type="text" id="paymentAmount" name="paymentAmount" value=""></td>
</tr>
<tr>
<td><label for="currency">Currency</label></td>
<td><input type="text" id="currency" name="currency" value="AUD"/></td>
</tr>
<tr>
<td><label for="purchaseDescription">Description</label></td>
<td><input type="text" id="purchaseDescription" name="purchaseDescription"
value="Shiny blue widget"/></td>
</tr>
<tr>
<td><label for="transactionType">Transaction Type</label></td>
<td><select id="transactionType" name="transactionType">
<option>authorise</option>
<option selected>purchase</option>
</select></td>
</tr>
<tr>
<td><label for="referenceNumber">Reference Number</label></td>
<td><input type="text" id="referenceNumber" name="referenceNumber" value=""/></td>
</tr>
<tr>
<td><label for="messageReference">Message Reference</label></td>
<td><input type="text" id="messageReference" name="messageReference" value=""/></td>
</tr>
<tr>
<td><input type="submit" id="checkOut" name="checkOut" value="Check out"/></td>
</tr>
</table>
</div>
</form>
</body>
</html>