简体   繁体   English

PayPal网站付款专业版和IPN

[英]PayPal website payments pro and ipn

I currently using website payments standard with PayPal and it works fine. 我目前在PayPal上使用网站付款标准,效果很好。 I use a lot of the ipn functions. 我使用了很多ipn函数。

I am looking to migrate to pro so I can control the checkout experience. 我希望迁移到专业人士,以便我可以控制结帐体验。

I was reading https://developer.paypal.com/docs/classic/paypal-payments-pro/integration-guide/WPWebsitePaymentsPro/ 我正在阅读https://developer.paypal.com/docs/classic/paypal-payments-pro/integration-guide/WPWebsitePaymentsPro/

But cannot seem to tell if ipn will still work with the pro version. 但是似乎无法确定ipn是否仍可以与专业版一起使用。

If so how to I set item_name and such? 如果是这样,如何设置item_name等?

Yes IPN still works with the PayPal Pro too . 是的,IPN仍然可以与PayPal Pro一起使用。 You will get the IPN for credit card payments in the same way as you get for PayPal transactions . 您将以与PayPal交易相同的方式获得用于信用卡付款的IPN。 For showing the item details you need to pass the line item details while submitting the transaction . 为了显示项目明细,您需要在提交事务时传递行项目明细。 You can refer the API docs here : 您可以在此处参考API文档:

https://developer.paypal.com/docs/classic/api/merchant/DoDirectPayment_API_Operation_NVP/ https://developer.paypal.com/docs/classic/api/merchant/DoDirectPayment_API_Operation_NVP/

And below is a sample request : 下面是一个示例请求:

NVP Request:
USER=XXXXXX&PWD=XXXXXX&SIGNATURE=XXXXXX2js3l1Kd48i&VERSION=109.0&METHOD=DoDirectPayment&PAYMENTACTION=Sale&IPADDRESS=192.168.0.1&AMT=20.00&CREDITCARDTYPE=Visa&ACCT=4916242305306840&EXPDATE=102020&CVV2=123&FIRSTNAME=John&LASTNAME=Test&STREET=12312 Port Grace Blvd&CITY=La Vista&STATE=NE&COUNTRYCODE=US&ZIP=68128&CURRENCYCODE=USD&L_NAME0=ProductA&L_DESC0=DescrA&L_AMT0=12.00&L_NUMBER0=AAAA&L_QTY0=1&L_NAME1=ProductB&L_DESC1=DESCB&L_AMT1=8.00&L_NUMBER1=BBB&L_QTY1=1&ITEMAMT=20.00

NVP Response:
TIMESTAMP=2015-04-10T23:03:55Z
CORRELATIONID=868df2e4ac78a
ACK=Success
VERSION=109.0
BUILD=16139311
AMT=20.00
CURRENCYCODE=USD
AVSCODE=X
CVV2MATCH=M
TRANSACTIONID=5EY755831A6318847

The IPN corresponding to it : 对应的IPN:

在此处输入图片说明

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

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