简体   繁体   English

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

[英]how to customize credit card payment in 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 我已经通过sandbox.Paypal帐户完成了付款,并且我为信用卡付款创建了单独的菜单,我已经为信用卡付款创建了单独的菜单

在此处输入图片说明 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. 用户填写完这些详细信息后,我不想显示Paypal页面。它必须检查Paypal中的详细信息并重定向到success.php,但是我没有得到如何做。 can any one please let me know? 可以让我知道吗?

here with the dodirectpayment processs 这里有dodirectpayment流程

<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 我已经在其他菜单中完成了Paypal,并且我需要使用Paypal进行单独的信用卡/借记卡付款以检查详细信息,但没有显示Paypal页面

Because what your trying to do, is a paypal NVP authorization and capture. 因为您尝试做的是Paypal NVP授权和捕获。 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 您需要做的是使用NVP和cURL直接付款

You will find more about it 您会发现更多关于它的信息
@ https://developer.paypal.com/docs/classic/paypal-payments-pro/integration-guide/WPDPGettingStarted/ @ 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. 我建议改为使用贝宝SDK。 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 @ https://github.com/paypal/PayPal-PHP-SDK/blob/master/sample/payments/CreatePayment.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM