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

how to customize credit card payment in paypal

我已经通过 sandbox.Paypal 帐户完成付款,并且我已经为信用卡付款创建了单独的菜单 我为信用卡支付创建了单独的菜单

用户填写这些详细信息后,我不想显示 Paypal 页面。它必须检查 Paypal 中的详细信息并重定向到 success.php,但我不知道该怎么做。任何人都可以让我知道吗?

这里是直接支付流程

<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

我已经在其他菜单中完成了 Paypal,我需要使用 Paypal 单独 credit/debit 付款以检查详细信息,但没有显示 Paypal 页面

因为您要做的是 paypal NVP 授权和捕获。通过将表格张贴到贝宝,您不会得到您想要的结果。

您需要做的是使用 NVP 和 cURL 直接付款

你会发现更多关于它的信息
@https://developer.paypal.com/docs/classic/paypal-payments-pro/integration-guide/WPDPGettingStarted/
在标题为 "Implementing the Simplest Direct Payment Integration"

的部分下查找

注意**
我推荐使用 paypals SDK。对于你想要实现的目标,看看这个例子是多么容易
@https://github.com/paypal/PayPal-PHP-SDK/blob/master/sample/payments/CreatePayment.php