duanchi8836 2016-01-19 06:28
浏览 108
已采纳

如何在paypal中自定义信用卡付款

i have done payment though sandbox.Paypal account and i have created separate menu for credit card payment i have created separate menu for credit-card payment

enter image description here after user filling these details i don't want to show Paypal page .it has to check details in Paypal and redirects to success.php but m not getting how to do that. can any one please let me know?

here with the dodirectpayment processs

<div class="btn btn-primary">
<form method="post" action="https://api-3t.sandbox.paypal.com/nvp">
<input type="hidden" name="USER" value="username"/>
<input type="hidden" name="PWD" value="password"/>
<input type="hidden" name="SIGNATURE" value="api signature"/>
<input type="hidden" name="METHOD" value="DoDirectPayment"/>
<input type="hidden" name="PAYMENTACTION" value="Authorization"/>
<input type="hidden" name="IPADDRESS" value="192.168.1.12"/>
<input type="hidden" name="VERSION" value="86.0"/>
<input type="hidden" name="CREDITCARDTYPE" value="VISA"/>
<input type="hidden" name="ACCT" value="4641631486853053"/>
<input type="hidden" name="EXPDATE" value="052015"/>
<input type="hidden" name="CVV2" value="123"/>
<input type="hidden" name="AMT" value="23.00"/>
<input type="hidden" name="CURRENCYCODE" value="USD"/>
<input type="hidden" name="FIRSTNAME" value="James"/>
<input type="hidden" name="LASTNAME" value="smith"/>
<input type="hidden" name="STREET" value="firstStreet"/>
<input type="hidden" name="CITY" value="SanJose"/>
<input type="hidden" name="STATE" value="CA"/>
<input type="hidden" name="Zip" value="95131"/>
<input type="hidden" name="COUNTRYCODE" value="US"/>
<button class="btn">pay 2</button>
</form>
</div>

             Result:TIMESTAMP=2016%2d01%2d19T07%3a49%3a33Z&CORRELATIONID=8e30307764193&ACK=Failure&VERSION=86%2e0&BUILD=18308778&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Security%20error&L_LONGMESSAGE0=Security%20header%20is%20not%20valid&L_SEVERITYCODE0=Errorstrong text

i have done Paypal in others menu and i need separate credit/debit payment using Paypal for checking details but with out showing Paypal page

  • 写回答

1条回答 默认 最新

  • donglinxin8765 2016-01-19 16:50
    关注

    Because what your trying to do, is a paypal NVP authorization and capture. By posting a form to paypal you will not get the result your looking for.

    What you need to do is a Direct Payment Using NVP and cURL

    You will find more about it
    @https://developer.paypal.com/docs/classic/paypal-payments-pro/integration-guide/WPDPGettingStarted/
    Look under the section titled "Implementing the Simplest Direct Payment Integration"

    Note**
    i recommend paypals SDK instead. For what your trying to achieve look how easy in comparsion this example is
    @https://github.com/paypal/PayPal-PHP-SDK/blob/master/sample/payments/CreatePayment.php

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办