简体   繁体   English

Paypal信用卡支付集成问题

[英]Paypal credit card payments integration problem

I got problem when I submit credit card information to paypal, It'll give me error like "There's an error with this transaction. Please enter a country in the billing address."我在向 paypal 提交信用卡信息时遇到问题,它会给我类似“此交易出现错误。请在帐单地址中输入国家/地区”之类的错误。 Though I send "COUNTRY" parameters in NVP string.虽然我在 NVP 字符串中发送“国家”参数。 Below is my NVP string.下面是我的 NVP 字符串。

Can anyone help me Please?任何人都可以帮助我吗? Thanks in advance.提前致谢。

$nvpstr="&PAYMENTACTION=Sale&IPADDRESS=$ip&AMT=$amount&CREDITCARDTYPE=$creditCardType&
ACCT=$creditCardNumber&EXPDATE=".$padDateMonth.$expDateYear."&CVV2=$cvv2Number&
FIRSTNAME=$firstName&LASTNAME=$lastName&STREET=$address1&STREET2=$address2&CITYNAME=$city&
STATEORPROVINCE=$state&POSTALCODE=$zip&COUNTRY=$country&CURRENCYCODE=$currencyCode";

Help me.帮我。

METHOD=doDirectPayment
&VERSION=65.1
&PWD=1314384818
&USER=taruku_1314384782_biz_api1.smaotdatainc.net
&SIGNATURE=A7IZoLJTxfLBP8mJElBqhcYwz10QhhzhFE3ZJbQDUy5L140pQPdMoinR
&PAYMENTACTION=Sale
&AMT=1.00
&CREDITCARDTYPE=Visa
&ACCT=4831623809779107
&EXPDATE=012012&CVV2=962
&FIRSTNAME=John
&LASTNAME=Doe
&STREET=1+Main+St
&CITY=San+Jose
&STATE=CA
&ZIP=95131
&COUNTRYCODE=US
&CURRENCYCODE=USD

Match your string with this one.. I think "COUNTRY" should be "COUNTRYCODE" also if problem exists match other address related parameters... :) will work fine..将您的字符串与这个匹配..我认为“COUNTRY”应该是“COUNTRYCODE”,如果问题存在匹配其他地址相关参数... :) 会正常工作..

These are incorrect parameters.这些是不正确的参数。 Use PAYMENTREQUEST_0_SHIPTOSTREET, PAYMENTREQUEST_0_SHIPTOCOUNTRY, etc.使用 PAYMENTREQUEST_0_SHIPTOSTREET、PAYMENTREQUEST_0_SHIPTOCOUNTRY 等。
https://cms.paypal.com/uk/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_SetExpressCheckout https://cms.paypal.com/uk/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_SetExpressCheckout

Note: PAYMENTREQUEST_0_ is optional.注意:PAYMENTREQUEST_0_ 是可选的。 It's used for parallel payments.它用于并行支付。 If you don't use that, just follow the docs and add PAYMENTREQUEST_0_ wherever it says so.如果您不使用它,只需按照文档说明并添加 PAYMENTREQUEST_0_ 即可。

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

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