Last post Oct 01, 2008 08:02 PM by ujjwalbsoni20032003
Jan 16, 2008 09:56 PM|bradoyler|LINK
I have a standard credit card form that I need to integrate into Paypal API . I've tried the Paypal API samples
HERE and I can't seem to get them to even work. Honestly, they seem way too distracting and overly complicated to be called "samples".
Anyone have a simple example that uses a simple form in an aspx page? Thanks.
Jan 16, 2008 10:05 PM|SeniorDevRob|LINK
Which PayPal method are you looking to use?
Jan 16, 2008 10:44 PM|kkarasinski|LINK
if you are using payflow pro then Rick Strahl has a nice tutorial on how to use it.
Jan 16, 2008 11:03 PM|bradoyler|LINK
Paypal Websites Pro (US) , and more specifically "DoDirectPayment"
Jan 20, 2008 04:14 PM|bradoyler|LINK
public partial class NVP_SetExpressCheckout : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
//API Credentials (3-token)
string strUsername = "sdk-three_api1.sdk.com";
string strPassword = "QFZCWN5HZM8VBG7Q";
string strSignature = "A21eW1ch..NEqJJ-glaLhqkBMlzeAsWqX0ycck-CTc0tKI4pa1u.rgNF";
string strCredentials = "USER=" + strUsername + "&PWD=" + strPassword + "&SIGNATURE=" + strSignature;
string strNVPSandboxServer = "https://api-3t.sandbox.paypal.com/nvp";
string strNVPLiveServer = "https://api-3t.paypal.com/nvp";
string strAPIVersion = "2.3"
string strNVP = strCredentials + "&METHOD=DoDirectPayment&CREDITCARDTYPE=VISA&ACCT=4683075410516684&EXPDATE=092007&CVV2=808&AMT=212.95&FIRSTNAME=Designer&LASTNAME=Fotos&IPADDRESS=255.55.167.002&STREET=1234+Easy+Street&CITY=San+Jose&STATE=CA&COUNTRY=United+States&ZIP=95110&COUNTRYCODE=US&PAYMENTACTION=Sale&VERSION=" + strAPIVersion;
//Create web request and web response objects, make sure you using the correct server (sandbox/live)
HttpWebRequest wrWebRequest = (HttpWebRequest)WebRequest.Create(strNVPSandboxServer);
//Set WebRequest Properties
wrWebRequest.Method = "POST";
// write the form values into the request message
StreamWriter requestWriter = new StreamWriter(wrWebRequest.GetRequestStream());
// Get the response.
HttpWebResponse hwrWebResponse = (HttpWebResponse)wrWebRequest.GetResponse();
StreamReader responseReader = new StreamReader(wrWebRequest.GetResponse().GetResponseStream());
// and read the response
string responseData = responseReader.ReadToEnd();
Jan 26, 2008 05:05 PM|qhyzme|LINK
i'm struggling with this problem, integrating paypal dodirectpayment and express checkout with my website. can you please help with this, i really need to integrate paypal with my website.
i am new with asp.net and current using vb. c# code will do, i'll try to convert it to vb using code converter available on the net.
thanks in advance,
Sep 05, 2008 06:21 PM|bradoyler|LINK
This article may be of some help.
Sep 08, 2008 01:04 AM|qhyzme|LINK
thanks bradoyler for your response.
i already done with this one, integrating paypal to website. i will take this link as a reference next time i need to integrate paypal.
Oct 01, 2008 08:02 PM|ujjwalbsoni20032003|LINK
I am also in a need of paypal integration examples.
The examples on paypal website are too complicated to understand.
Ujjwal B Soni