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 for the payment
- Address billingAddress = new Address();
- billingAddress.city = "Johnstown";
- billingAddress.country_code = "US";
- billingAddress.line1 = "52 N Main ST";
- billingAddress.postal_code = "43210";
- billingAddress.state = "OH";
- //Now Create an object of credit card and add above details to it
- 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";

hari dassPosted Feb 15, 2019, 6:43 AM
Sanghamitra MohantyPosted Jun 21, 2018, 1:06 AM
Ravindra SinghPosted Jun 21, 2018, 1:04 AM