如何在 payeezy 演示支付网关中传递带有订单详细信息的总金额
How to pass total amount with order details in payeezy demo payment gateway
我已经为我的一个电子商务网站集成了 Payeezy 支付网关。我可以轻松传递包含价格和数量的订单详细信息,但无法传递订单详细信息的总金额。
这是我正在使用的代码---->
<form action="https://demo.globalgatewaye4.firstdata.com/pay" id="pay_now_form_1dcc971562" method="post">
<input name="x_login" type="hidden" value="XXX-XXXX-xxxxxxxxxx" />
<input name="x_show_form" type="hidden" value="PAYMENT_FORM" />
<input name="x_fp_sequence" type="hidden" value="14605299651823126780" />
<input name="x_fp_hash" type="hidden" value="PNB-1.0-eba46929895e57fc4254e9ef11cdbcbcf647334c" />
<input name="x_amount" type="hidden" />
<input name="x_currency_code" type="hidden" value="USD" />
<input name="x_test_request" type="hidden" value="TRUE" />
<input name="x_relay_response" type="hidden" value="" />
<input name="donation_prompt" type="hidden" />
<input name="button_code" type="hidden" value="Pay Now mySite" />
<?php
foreach ($_SESSION["cart_item"] as $item) {
?>
<input name="x_line_item" value="1<|><?php echo $item['title']; ?><|><?php echo $item['title']; ?><|>1<|><?php echo $item['price']; ?><|>YES" type="hidden">
<?php
} ?>
<div class="cpwrap">
<button type="button" >Pay Now</button>
</div>
</form>
如果我将值传入
<input name="x_amount" type="hidden" value="99"/>
然后我在 paymant 网关中收到错误 "Unable to proceed with payment "。
那么如何解决这个问题。请做一些有需要的。
提前致谢。
关于,
苏迪尔
是的..在对 payeezy 进行了大量研究后终于得到了这个 link
这里是如何将 payeezy 与 PHP 集成的代码,具有动态订单详细信息和总金额。
我已经为我的一个电子商务网站集成了 Payeezy 支付网关。我可以轻松传递包含价格和数量的订单详细信息,但无法传递订单详细信息的总金额。
这是我正在使用的代码---->
<form action="https://demo.globalgatewaye4.firstdata.com/pay" id="pay_now_form_1dcc971562" method="post">
<input name="x_login" type="hidden" value="XXX-XXXX-xxxxxxxxxx" />
<input name="x_show_form" type="hidden" value="PAYMENT_FORM" />
<input name="x_fp_sequence" type="hidden" value="14605299651823126780" />
<input name="x_fp_hash" type="hidden" value="PNB-1.0-eba46929895e57fc4254e9ef11cdbcbcf647334c" />
<input name="x_amount" type="hidden" />
<input name="x_currency_code" type="hidden" value="USD" />
<input name="x_test_request" type="hidden" value="TRUE" />
<input name="x_relay_response" type="hidden" value="" />
<input name="donation_prompt" type="hidden" />
<input name="button_code" type="hidden" value="Pay Now mySite" />
<?php
foreach ($_SESSION["cart_item"] as $item) {
?>
<input name="x_line_item" value="1<|><?php echo $item['title']; ?><|><?php echo $item['title']; ?><|>1<|><?php echo $item['price']; ?><|>YES" type="hidden">
<?php
} ?>
<div class="cpwrap">
<button type="button" >Pay Now</button>
</div>
</form>
如果我将值传入
<input name="x_amount" type="hidden" value="99"/>
然后我在 paymant 网关中收到错误 "Unable to proceed with payment "。
那么如何解决这个问题。请做一些有需要的。
提前致谢。
关于, 苏迪尔
是的..在对 payeezy 进行了大量研究后终于得到了这个 link
这里是如何将 payeezy 与 PHP 集成的代码,具有动态订单详细信息和总金额。