我想实现微信支付和支付宝,但我想通过 Hantepay 实现。它是名为 Hantepay 的第三方机构。好处之一是他们实际上同时支持支付宝(与微信支付一样流行)。我们可以通过一个API处理微信支付和支付宝的付款。
这是详细说明文档的链接,供引用:http://139.199.112.175
如何在 ionic 项目中实现它。
最佳答案
- 首先从此处创建您的沙盒帐户 https://ezidebit.secure.force.com/online/SandboxRequest
- 从这里您将获得用于测试的 key
- 然后在您的 ionic 应用程序或服务器端制作此表单`
<form action="https://payments.handepay.co.uk/devtools/sigtest.php? key=MySecretKey" method="POST"> <input type="hidden" name="action" value="SALE"> <input type="hidden" name="type" value="1"> <input type="hidden" name="currencyCode" value="826"> <input type="hidden" name="countryCode" value="826"> <input type="hidden" name="amount" value="2512"> <input type="hidden" name="transactionUnique" value="55f01b80eda38"> <input type="hidden" name="orderRef" value="Signature Test"> <input type="hidden" name="cardNumber" value="4929 4212 3460 0821"> <input type="hidden" name="cardExpiryDate" value="1213"> <input type="submit" value="Submit"> </form>
然后调用此表单
your payment will done successfully signature key is needed in production mode you have to go here to generate
Production mode
=======
the signature key the url is https://payments.handepay.co.uk/devtools/sigtest.php?key=MySecretKey
关于ios - hantepay 支付方式在 ionic 中实现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58456173/