【问题标题】:Collecting card details within the app on Telr Payment gateway在 Telr 支付网关上的应用程序内收集卡详细信息
【发布时间】:2017-07-04 11:07:50
【问题描述】:

我正在我当前的应用程序上集成“Telr”支付网关。我已阅读所有文档部分。我的应用程序将收集卡的详细信息(而不是使用托管的支付页面)。这是我提出的要求。如果有人有一些演示或集成 Telr 支付网关,请随时回复。

let paramString: String = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
        "<mobile>" +
        "<store>\(12345)</store>" + "<key>somekey</key>" +
        "<device>" +
        "<type>\("iPhone6")</type>" +
        "<id>\(deviceId)</id>" +
        "<agent></agent>" +
        "<accept></accept>" +
        "</device>" +
        "<app>" +
        "<name>Telr_Payment_Demo</name>" +
        "<version>1.0</version>" +
        "<user>xyz.Demo</user>" +
        "<id>1234567</id>" +
        "</app>" +
        "<tran>" +
        "<test>12</test>" +
        "<type>paypage</type>" +
        "<class>moto</class>" +
        "<cartid>syste1075</cartid>" +
        "<description>this is demo on telr</description>" +
        "<currency>AED</currency>" +
        "<amount>\(9.80)</amount>" +
        "<ref>\("000000000001")</ref>" +
        "</tran>" +
        "<card>" +
        "<number>\("5555555555554444")</number>" +
        "<expiry>" +
        "<month>\(02)</month>" +
        "<year>\(2018)</year>" +
        "</expiry>" +
        "<cvv>\(123)</cvv>" +
        "</card>" +
        "<billing>" +
        "<name>" +
        "<title>\("fsfsfs")</title>" +
        "<first>\("First")</first>" +
        "<last>\("last")</last>" +
        "</name>\n" +
        "<address>" +
        "<line1>\("Kathmandu bazar")</line1>" +
        "<line2>\("address 6")</line2>" +
        "<line3>\("Near gausala")</line3>" +
        "<city>\("kathmandu")</city>" +
        "<region>\("Bagmati")</region>" +
        "<country>\("Nepal")</country>" +
        "<zip>\("977")</zip>" +
        "</address>" + 
        "<email>\("s*********@gmail.com")</email>" +
        "</billing>" + 
    "</mobile>"

我收到来自服务器的以下响应

 <mobile>
 <webview>
 <start>https://secure.innovatepayments.com/gateway/webview_start.html? code=f1caa6ce6c23595b71dc00369</start>   
<close>https://secure.innovatepayments.com/gateway/webview_close.html</close>
<abort>https://secure.innovatepayments.com/gateway/webview_abort.html</abort>
<code>f1caa6ce6c23595b71dc00369</code>
</webview>
<trace>40008/1683846/595b7168dc</trace>
</mobile>

第一个 url 将重定向到托管支付页面卡详细信息视图。我不知道我应该如何处理该响应。This is the payment integration guidelines for developer.

【问题讨论】:

    标签: ios swift payment-gateway


    【解决方案1】:

    从您链接到的文档中说:

    当收到 webview 响应时,App 需要将 客户到作为起始地址给出的 URL。该应用程序应监控 webview 的进度,一旦它到达提供的 URL 关闭地址,它应该关闭网页显示并继续 交易流程。

    要完成交易,应用程序现在必须再次请求 网关。此请求包含将触发最终 交易的授权阶段,并返回授权 回复。请求必须发送至:

    https://secure.innovatepayments.com/gateway/mobile_complete.xml ...

    所以我会从那开始,看看会发生什么

    【讨论】:

      猜你喜欢
      • 2015-01-24
      • 2016-11-06
      • 2012-08-31
      • 2021-01-22
      • 2011-03-24
      • 2020-03-10
      • 2021-09-08
      • 2011-07-25
      • 2015-07-22
      相关资源
      最近更新 更多