I am currently testing credit card payments using the PayPal payments Rest API.
I keep getting the following error:
PayPalException Execute: The remote server returned an error: (400) Bad Request.
My Card details
-
- Address billingAddress = new Address();
- billingAddress.city = "Johnstown";
- billingAddress.country_code = "US";
- billingAddress.line1 = "52 N Main ST";
- billingAddress.postal_code = "43210";
- billingAddress.state = "OH";
-
- CreditCard crdtCard = new CreditCard();
- crdtCard.billing_address = billingAddress;
- crdtCard.cvv2 = "819";
- crdtCard.expire_month = 10;
- crdtCard.expire_year = 2019;
- crdtCard.first_name = "pankaj";
- crdtCard.last_name = "Kumar";
- crdtCard.number = "4885699625443750";
- crdtCard.type = "visa";