如何在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

查看全部
duanchi8836
duanchi8836
2016/01/19 06:28
  • php
  • paypal
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复