【问题标题】:Easy paisa Payment Gateway Integration ErrorsEasy paisa 支付网关集成错误
【发布时间】:2017-04-09 11:49:08
【问题描述】:

在处理 EasyPaisa 支付网关集成时遇到错误,我需要帮助。

我们在 EasyPaisa 上有一家商店,并收到了如何集成的支付集成指南。

他们通过发布以下表单https://easypay.easypaisa.com.pk/easypay/Index.jsf

提到了这一点
<form action="https://easypay.easypaisa.com.pk/easypay/Index.jsf" method="POST" target="_blank">
<! -- Store Id Provided by Easypay-->
<input name="storeId" value="43" hidden = "true"/>
<! -- Amount of Transaction from merchant’s website -->
<input name="amount" value="10" hidden = "true"/>
<! – Post back URL from merchant’s website -- >
<input name="postBackURL" value=" http://www.my.online-store.com/transaction/MessageHandler" hidden = "true"/>
<! – Order Reference Number from merchant’s website -- >
<input name="orderRefNum" value="1101" hidden = "true"/>
<! – Expiry Date from merchant’s website (Optional) -- >
<input type =”hidden” name=”expiryDate” value=”20140606 201521”>
<! – Merchant Hash Value (Optional) -- >
<input type =”hidden” name=”merchantHashedReq” value=”askldjflaksdjflkasdf======asdfas dfkjaskdf”>
<! – If Merchant wants to redirect to Merchant website after payment completion (Optional) -- >
<input type =”hidden” name=”autoRedirect” value=”0”>
<! – If merchant wants to post specific Payment Method (Optional) -- >
<input type =”hidden” name=”paymentMethod” value=”0”>
<! – If merchant wants to post specific Payment Method (Optional) -- >
<input type =”hidden” name=”emailAddr” value=”test.abcd@abcd.com”>
<! – If merchant wants to post specific Payment Method (Optional) -- >
<input type =”hidden” name=”mobileNum” value=”03325241789”>
<! – This is the button of the form which submits the form -- >
<input type = “image” src=”checkout-button-with-logo.png border=”0” name= “pay”>
</form>

当我使用我们的 storeId 提交此表单时,在 easypaisa 网站上收到以下错误

Easy Paisa Description about error

任何帮助是我遗漏了一些东西

【问题讨论】:

  • 能否在php或其框架laravel中集成easy paisa?
  • 如果你的问题还没有解决,请告诉我,我会给你完整的工作代码。
  • @shaz3e 你的代码可以在 PHP 上运行吗?

标签: payment-gateway payment


【解决方案1】:

<! – If merchant wants to post specific Payment Method (Optional) -- >

Replace this:

<input type =”hidden” name=”paymentMethod” value=”0”>

<! – If merchant wants to post specific Payment Method (Optional) -- >

By one of the following.

1. For Mobile Account:

<input type ="hidden" name="paymentMethod" value="MA_PAYMENT_METHOD">


2. For Retailer/Shop Account:

<input type ="hidden" name="paymentMethod" value="OTC_PAYMENT_METHOD/">


3. For Credit/Debit Card:

<input type ="hidden" name="paymentMethod" value="CC_PAYMENT_METHOD">

【讨论】:

    【解决方案2】:

    其实是Easypaisa的文档给出的代码sn-p的问题。

    引号(双引号)是错误的

    用“替换”

    这些是:

    <input type =”hidden” name=”paymentMethod” value=”0”>
    
    

    应该是:

    <input type ="hidden" name="paymentMethod" value="0">
    
    

    【讨论】:

      【解决方案3】:

      您的表单输入错误,这就是它不起作用的原因。

      您只需更改它并检查它是否有效。

      <! – If merchant wants to post specific Payment Method (Optional) -- >
      
      Replace this:
      
      <input type =”hidden” name=”paymentMethod” value=”0”>
      
      <! – If merchant wants to post specific Payment Method (Optional) -- >
      
      By one of the following.
      
      1. For Mobile Account:
      
      <input type ="hidden" name="paymentMethod" value="MA_PAYMENT_METHOD">
      
      
      2. For Retailer/Shop Account:
      
      <input type ="hidden" name="paymentMethod" value="OTC_PAYMENT_METHOD/">
      
      
      3. For Credit/Debit Card:
      
      <input type ="hidden" name="paymentMethod" value="CC_PAYMENT_METHOD">

      我有同样的问题,但是当我尝试这个时它对我有用。

      【讨论】:

        猜你喜欢
        • 2019-06-27
        • 2011-05-05
        • 2020-04-16
        • 2016-02-02
        • 2012-05-21
        • 2011-03-10
        • 2013-07-21
        • 2015-03-19
        • 2013-07-18
        相关资源
        最近更新 更多