duan0504 2012-11-20 18:22
浏览 86

php中的支付网关集成[关闭]

I am trying to integrate payment gateway in my website which is developing by PHP. For that I am using PayPal. My code is like the following:

<form name="frm" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
    <div style="padding-left:250px;">
         <input type="hidden" name="cmd" value="_xclick" />
         <input type="hidden" name="business" value="MY_BUSINESS_MAIL_ID" />
         <input type="hidden" name="amount" value="<?php echo $amount; ?>" />
         <input type="hidden" name="no_shipping" value="1" />
         <input type="hidden" name="no_note" value="1" />
         <input type="hidden" name="currency_code" value="USD" />
         <input type="hidden" name="lc" value="USD" />
         <input type="hidden" name="item_name" value="Registration" />
         <input type="hidden" name="bn" value="PP-BuyNowBF" />
         <input type="hidden" name="return" value="<?php echo FRONT_END_PATH;?>payment-over.php?user_id=<?php echo $username;?>&req_amt=<?php echo $amount; ?>&role_name=<?php echo $role;?>&inramnt=<?php echo $inrAmnt; ?>" />
         <input type="hidden" name="rm" value="2" />
         <input type="submit"  border="0" name="submit" value="Order" alt="Make payments with PayPal - it's fast, free and secure!" class="additional_height button" title="Make payments with PayPal - it's fast, free and secure!" />
         <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" /> 
     </div>
</form> 

Now my question is that is this code correct, if customer tries to make payment within India. Also, can user use their credit card for making payment? My last question is that can user make their payment though net banking?

Please help me. Thanks in advance.

  • 写回答

1条回答 默认 最新

  • dongsaohu6429 2012-11-20 18:26
    关注

    Your code has nothing to do with The Way a user makes the payment. It is all handled by Paypal. I am not sure about other countries. But in India Users cannot make payments to paypal via Netbanking.

    They can only make payments via Credit/Debit Card.

    Also TO YOUR KNOWLEDGE

    INDIAN PAYPAL ACCOUNT, CANNOT ACCEPT ANY PAYMENTS FROM ANOTHER INDIAN PAYPAL ACCOUNT.

    评论

报告相同问题?

悬赏问题

  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 正弦信号发生器串并联电路电阻无法保持同步怎么办
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序