BNP AXEPTA - 静默订单发布不起作用

问题描述 投票:0回答:1

我正在尝试让客户设置 AXEPTA 支付系统,但它不起作用,我不明白问题出在哪里。这是文档

这是我的代码,其中包含测试数据,可以在 AXEPTA 文档中找到。

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Axepta Silent Post Order</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 50px;
        }
        form {
            max-width: 300px;
            margin: 0 auto;
        }
    </style>
</head>
<body>
    <form name="cardForm" action="https://paymentpage.axepta.bnpparibas/payNow.aspx" method="post">
        <!-- Replace the hidden input values with your actual values -->
        <input type="hidden" name="MerchantID" value="BNP_DEMO_AXEPTA">
        <input type="hidden" name="Len" value="459">
        <input type="hidden" name="Data" value="63cc9a9b21ecea8795ecf9ff112e81e11f1a13352fbcb69eb58e67572184c59a5328ac607da571c50c1b4c9a79bdbab3b2626f8b3f60e037d93b0d0753b0e163386ae7fcd0fd6c5845c75fd1e03f951711d3f1608dc3b42d2b4842a1c41eb2d1635f9e9216211591c87bada29879bd1125725982025547b62ed3b2fcbb668ee786c7dc700975d00fe2ad4e30f27de664686256a649f010d5b2a40b65f5baf0b44153478374223d16b3900fc21ddfd4364513f2ea1ba15c5704d5906adeec028768f57f0f33b4fd732be532bcc175faa24092a977b58eec726f9b8256425d5704e275b7411ba05dfad9202384fb2e43b6a77ade73f1c34e7811532142ec35d8347f8a3c1c1c0d592a50642e7eed6eb3c7e0003938cc4aef4c55177761ee70721f12893e0f0b9b29b3c14f4194fc713f6f1f2301353eeebf9e35046bd6ed2fd3eca41c2161456fcdb90fac49fb0cc558269f412da8900149f257c2166e194e090a1c65c8ecb1678a34f62513ebf43de8db6590e812621a9a6bfc47d0399b98a393a53cef1618dcec786ba80270fc17c1aab09ffdd052ee36b9bf373daf4367b9a79a21cb1c4e5a6541009c15e29957c11c1ac001e1cfc9714b7ab5ee0cab0fa01d08e05828b997854ad7fdcfb772b9d67f">

        <input type="submit" value="Submit">
    </form>

    <script>
    </script>
</body>
</html>

这是编码前的数据:

TransID=101664548923266214628&Amount=20&Currency=EUR&URLSuccess=https://www.example.com/success.php&URLFailure=https://www.example.com/failure.php&URLNotify=https://www.example.com/notify.php&OrderDesc =order1&UserData=John Doe&Capture=AUTO&Response=加密&MAC=1ac6ac3383b1d99d55694574a4177f1937db0ed91b7976dab111c61a61b0416a&cardNumber=5232122189301469&cardExpiryMonth=10&cardExpiryYear=2024

当我点击提交时,我进入了 failure.php 页面,URL 是:

https://www.example.com/failure.php?Len=222&Data=E57DDADD89337D21EB2863DC118ADF316A1220A9E1BE3861C8C647F37B20525746FB44C8E01280EC46FB44C8E01280EC46FB44C8E0 1280EC74A6DBB084C668665DAE26D5DA3EAA3BE208C79F815352644F6675426B75ECB3C6E906FA96DECC3A8ADF076279D486014AB636E5747FA3CA62D51B4B2C222290C047FDA 07250F3CB3415816E2F6A3D3DE0046FF603BFF16619A0D66DC2010D5AF0383781B2CE1C87A051014475991ECB39BD24C43B233C5D1CC2AC40D7F718BCE078BF26B9E9759CCE 9021B6BAB48D8ABD0FDA8C2B74DD2AD40C2E1B69B0D68B12990E9CE14F778E

此响应中未加密的数据是:

“BNP_DEMO_AXEPTA”中
PayID“00000000000000000000000000000000”
状态“失败”
代码“20500077”
描述“未找到有效的付款方式”
TransID“101664548923266214628”
MAC“95345B6B5DD9D3FF0EA470F099069B509B3DB274588E48341F8CD24B0FC42C73”

这是failure.php代码:

<?php
echo "Payment failed!<br>";
echo "Response Code: " . $_POST['Code'] . "<br>";
echo "Description: " . $_POST['Description'];
?>

这是他们提供的一个有用的加密工具: 这里

我已经尝试了一切,我真的很震惊,我不明白为什么这么简单的东西不起作用。

非常欢迎任何帮助!

托管支付方式运行良好,根据测试数据,至少运行良好...... 但是当涉及到商家托管页面(例如这里的静默邮政订单)时,它根本不起作用。

callback payment-gateway payment payment-processing
1个回答
0
投票

看文档就行了,检查一下你传给页面的参数以及需要的参数就可以了

通过:

<form name="cardForm" action="https://paymentpage.axepta.bnpparibas/payNow.aspx" method="post">
        <!-- Replace the hidden input values with your actual values -->
        <input type="hidden" name="MerchantID" value="BNP_DEMO_AXEPTA">
        <input type="hidden" name="Len" value="459">
        <input type="hidden" name="Data" value="63cc9a9b21ecea8795ecf9ff112e81e11f1a13352fbcb69eb58e67572184c59a5328ac607da571c50c1b4c9a79bdbab3b2626f8b3f60e037d93b0d0753b0e163386ae7fcd0fd6c5845c75fd1e03f951711d3f1608dc3b42d2b4842a1c41eb2d1635f9e9216211591c87bada29879bd1125725982025547b62ed3b2fcbb668ee786c7dc700975d00fe2ad4e30f27de664686256a649f010d5b2a40b65f5baf0b44153478374223d16b3900fc21ddfd4364513f2ea1ba15c5704d5906adeec028768f57f0f33b4fd732be532bcc175faa24092a977b58eec726f9b8256425d5704e275b7411ba05dfad9202384fb2e43b6a77ade73f1c34e7811532142ec35d8347f8a3c1c1c0d592a50642e7eed6eb3c7e0003938cc4aef4c55177761ee70721f12893e0f0b9b29b3c14f4194fc713f6f1f2301353eeebf9e35046bd6ed2fd3eca41c2161456fcdb90fac49fb0cc558269f412da8900149f257c2166e194e090a1c65c8ecb1678a34f62513ebf43de8db6590e812621a9a6bfc47d0399b98a393a53cef1618dcec786ba80270fc17c1aab09ffdd052ee36b9bf373daf4367b9a79a21cb1c4e5a6541009c15e29957c11c1ac001e1cfc9714b7ab5ee0cab0fa01d08e05828b997854ad7fdcfb772b9d67f">

        <input type="submit" value="Submit">
    </form>

必填:

匹配吗? (提示:不是:D)

© www.soinside.com 2019 - 2024. All rights reserved.