Paypal REST AVS/CV2 codes -
i'm using paypal rest api via rest-api-sdk-java , would inquire whether possible avs/cvv match results in response (or error object).
i did couple of tests (with sandbox , negative testing turned on) according https://developer.paypal.com/docs/classic/lifecycle/sb_error-conditions/ (parts "testing avs errors" , "testing cvv code"):
payment request billing address street "123 avs_a street" results in internal_service_error:
{ "name": "internal_service_error", "debug_id": "baf56174e98c8", "message": "an internal service error has occurred", "information_link": "https://developer.paypal.com/webapps/developer/docs/api/#internal_service_error" }
the same payment request billing address street "123 avs_m street" results in successful sale.
is internal_service_error expected error in such scenario (avs_a) ? there way how "raw avs code" instead of internal_service_error or credit_card_rejected?
my request payload:
{ "intent": "sale", "payer": { "payment_method": "credit_card", "funding_instruments": [ { "credit_card": { "number": "4446283280247004", "type": "visa", "expire_month": 11, "expire_year": 2018, "cvv2": "888", "first_name": "susan", "last_name": "wagner", "billing_address": { "line1": "123 avs_a street", "line2": "billing address line 2", "city": "london", "country_code": "gb", "postal_code": "w1t 2bu", "state": "", "phone": "12345" } } } ] }, "transactions": [ { "amount": { "currency": "gbp", "total": "3.55", "details": { "shipping": "0.00", "subtotal": "3.55", "tax": "0.00" } }, "description": "t-shirt xyz" } ] }
and 1 more question: possible utilize advanced fraud management filters on sandbox environment? i'm using pro test business relationship still can't utilize filters (nothing happens when click "upgrade now" button):
https://www.sandbox.paypal.com/uk/cgi-bin/webscr?cmd=_rc-manage
looking @ debug id, test did work - sort of -
internal sandbox api error 10555 - filter decline
--> https://developer.paypal.com/webapps/developer/docs/classic/api/errorcodes/
the transaction declined because of merchant risk filter avs. specifically, merchant has set filter decline transactions when avs returns partial match.
so you've enabled avs fraud management filter on sandbox account.
obviously, there should proper error message , not internal service error, looks error hasn't been mapped yet.
will follow pp devs study & prepare ;)
as avs / cvv response within rest - there doesn't seem way retrieve avs/cvv response of issuing bank yet.
paypal paypal-sandbox
No comments:
Post a Comment