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." Though I send "COUNTRY" parameters in NVP string. Below is my NVP string.
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.
var_dump()
ed your$country
to be sure it has a string inside? – Shad