ios - hantepay 支付方式在 ionic 中实现

标签 ios angular ionic-framework ionic4

我想实现微信支付和支付宝,但我想通过 Hantepay 实现。它是名为 Hantepay 的第三方机构。好处之一是他们实际上同时支持支付宝(与微信支付一样流行)。我们可以通过一个API处理微信支付和支付宝的付款。

这是详细说明文档的链接,供引用:http://139.199.112.175

如何在 ionic 项目中实现它。

最佳答案

  1. 首先从此处创建您的沙盒帐户 https://ezidebit.secure.force.com/online/SandboxRequest
  2. 从这里您将获得用于测试的 key
  3. 然后在您的 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/

相关文章:

ios - 用于坐标的 Obj-c 数组 - 最佳实践?

angular - 为什么 Angular 5 中的错误为 : has no exported member 'OpaqueToken' . ?

使用 NgbDatepicker 的 Angular 单元测试失败

ionic-framework - 自定义 ionic 可搜索组件

javascript - Angular ng 消息 : how to check password confirmation?

ios - 从firebase获取名称显示

ios - 如何使用谷歌方向 API 在苹果 map 上快速绘制路线?

angular - 使用 Angular cli 7 在生产包中添加延迟/异步

ionic-framework - PouchDB 中的最大实时复制数

ios - 通过带有开发 SSL 证书的 xcode 在设备中推送通知测试