error: (500) Internal Server Error

Dileram
Contributor
Contributor

 Hi,
I am using paypal sdk(.net) in my code. To send the data to paypal I am using PaymentCard class with following debit card information in code:

PaymentCard paycard = new PaymentCard();
Address billingAddress = new Address();

billingAddress.city = "Mohali";
billingAddress.country_code = "QAR";
billingAddress.line1 = "asfnkasf";
billingAddress.postal_code = "1212112";
billingAddress.state = "Qatar";

paycard.card_product_class = "DEBIT";
paycard.billing_address = billingAddress;
paycard.number = "*********";

paycard.type = "visa";
paycard.first_name = "CAMERON";
paycard.last_name = "BLOMFIELD";
paycard.cvv2 = "538";
paycard.expire_month = 09;
paycard.expire_year = 19;


List<FundingInstrument> fundingInstrumentList = new List<FundingInstrument>();
fundingInstrumentList.Add(fundInstrument);
payr.funding_instruments = fundingInstrumentList;
payr.payment_method = "bank";

 
I am getting 500 internal server error.

Please help me out. How can I test the code with debit card information.

Thanks

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.