Paypal_base.dll usage and errors

mdaud
New Community Member

I'm using Paypal_base.dll to process Paypal transactions in my asp.net website but I'm getting errors. My code looks like:

 

stringResponse;

const string paymentAction ="Sale";

conststring currency ="USD";

varcaller=newNVPCallerServices();

IAPIProfile profile =ProfileFactory.createSignatureAPIProfile();

profile
.APIUsername=ConfigurationManager.AppSettings["APIUsername"];

profile
.APIPassword=ConfigurationManager.AppSettings["APIPassword"];

profile
.APISignature=ConfigurationManager.AppSettings["token"];

profile
.Environment="SandBox";

caller.APIProfile= profile;

var encoder =newNVPCodec();

encoder
["VERSION"]="58.0";

encoder
["METHOD"]="DoDirectPayment";

encoder
["PAYMENTACTION"]= paymentAction;

encoder
["AMT"]= amount;

encoder
["CREDITCARDTYPE"]= creditCardType;

encoder
["ACCT"]= creditCardNumber;

encoder
["EXPDATE"]= expdateMonth;


// encoder["CVV2"] = cvv2Number;


// encoder["FIRSTNAME"] = firstName;


// encoder["LASTNAME"] = lastName;

// encoder["STREET"] = city + ", " + state + ", " + countryCode;

// encoder["CITY"] = city;// encoder["STATE"] = state;

// encoder["ZIP"] = zip;

encoder
["COUNTRYCODE"]= countryCode;

encoder
["CURRENCYCODE"]= currency;

// Execute the API operation and obtain the response.string pStrrequestforNvp = encoder.Encode();

string pStresponsenvp =caller.Call(pStrrequestforNvp);

var decoder =newNVPCodec();

decoder
.Decode(pStresponsenvp);Response= decoder["L_LONGMESSAGE0"];

if(decoder["ACK"]=="Success")
{}

return decoder["ACK"];

caller.Call(pStrrequestforNvp) has this value:

TIMESTAMP=2013%2d10%2d02T22%3a40%3a04Z&CORRELATIONID=fa19cc06164da&ACK=Failure&L_ERRORCODE0=10001&L_SHORTMESSAGE0=Internal%20Error&L_LONGMESSAGE0=Timeout%20processing%20request

 

Login to Me Too
1 REPLY 1

snowshoe
Frequent Advisor
Frequent Advisor

As this forum is a bit less technical, you may want to try two other sources.

 

You can open a Support Ticket here:

https://ppmts.custhelp.com/app/home

 

(Note, you have to setup an account first, then you can submit and track your question.)

 

And there's the Developer's Forum:

http://stackoverflow.com/questions/tagged/paypal

Login to Me Too

Haven't Found your Answer?

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