Address verification service using paypal api

We wanted to implement paypal api for online payment transaction. What we did successfully, but now we want to check the billing address for CC data provided by the end user.

We read the article and found that we can use PAYPAL AVS for this. Can someone tell us how we can use this service in the PAYPAL NVP API.

+5
source share
1 answer

If you include a custom street and zip code in your request, the API will automatically return an AVS response.

An example of our NVP:

$nvpStr .= '&FIRSTNAME='.$firstName.'&LASTNAME='.$lastName.'&STREET='.$street.'&CITY='.$city.'&STATE='.$state.'&ZIP='.$zip.'&COUNTRY='.$countryCode;

$resArray['AVSADDR'] $resArray['AVSZIP']. Y/N/ . "N" , . . : https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_PayflowPro_Guide.pdf

, :

  • 'AVSADDR' 'AVSZIP' "N" , . , , PayPal ( ). , .

  • auth/delayed capture, 'AVSADDR' 'AVSZIP' - CC .

  • , 'CVV2MATCH', '&CVV2=' NVP.

  • "", CVV2, Address ZIP "Y", "N" , . PDF.

+6

All Articles