locked
Integration with PayPal in C# RRS feed

  • Question

  • User9611005 posted

    Hi Friends ....please any one suggest me how to integrate Paypal account with my application...

      i'm new to .net,googled out from last 3 to 4 days but i'm unable to understand the process..

      please any one suggest me the flow how to do that??

       in page have this fields:

      TotalAmount,CreditCard Type,CreditCardNum,ExpirationDate,CVV Num,FirstName,LastName,Address,City,State,Country,ZipCode

    Monday, February 6, 2012 4:41 AM

All replies

  • User535082756 posted

    hi

    You need to have the SDK from paypal to do this..

    You can try the below link...hope it helps...

    https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_download_sdks

    thanks,

    Monday, February 6, 2012 4:46 AM
  • User1913883758 posted

    //string path = ConfigurationManager.AppSettings["BaseURL"].ToString() ;
                            //string businessPaypalId = "bill_1324043702_biz@sdsol.com";
                            //string redirect = "";
                            //redirect += "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=" + businessPaypalId;
                            //redirect += "&item_name=" + BuyDetail[0].ToString();
                            //redirect += "&amount=" + String.Format("{0:0.00} ", BuyDetail[3].ToString());
                            //redirect += "&item_number=1";
                            //redirect += "&currency_code=USD";

                            //redirect += "&return="+path+"/BuyPayPal.aspx";
                            //redirect += "&cancel_return=" + path + "/BuyPayPal.aspx";
                            //redirect += "&notify_url=" + path + "/BuyPayPal.aspx";
                            //redirect += "&custom=" + Did.ToString();
                            //Response.Redirect(redirect);

    after getting response you need to get the querystring if success then ok

    otherwise failure.

    Monday, February 6, 2012 4:49 AM
  • User9611005 posted

    Hi etell...thanks for ur response....

           In my Page have CreditCardType,CNumber,Cvv Details of Customer,how to pass this details to paypal account and deduct money from them account??

    Monday, February 6, 2012 4:54 AM
  • User9611005 posted

    Hi friends...with the above Mentioned Code...i'm logging into the Developer account...

      After that what to do here??

    i'm in dilemma???

    Plz any one help me

    Monday, February 6, 2012 5:42 AM
  • User9611005 posted

    Hi frnds..any one help me ...:)

    Monday, February 6, 2012 11:51 PM
  • User535082756 posted

    Hi

    I this link there is a download sample for ASP.NET 

    https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_download_sdks

    Download that and check how it is used...you can try the sameway and make it work...

    Search for this term "Website Payments Standard"

    thanks,

    Tuesday, February 7, 2012 12:05 AM
  • User9611005 posted

    Hi cninjas...

       I refered ur link also but no use....

      Plz help me any one ,In my .aspx page have the Account Details.i want to bind this details to paypal account...??

      Give me Suggestions

    Tuesday, February 7, 2012 1:38 AM
  • User9611005 posted

    Hi... Every one

      Can we Bind Customer Details to Paypal Account..

     for instance Acc No,Acc Type,Exp Date,Cvv Num...etc

    My requirement is User should fill the Details in My Checkout Page ,if he clicks submit button this details will bind there ,if he dont have account ,automatically will create,if he have skips the creation page and process next step??

    Help me any one

    Monday, February 13, 2012 6:11 AM
  • User1283497924 posted

    As we know that fo integrating paypal we needed to pass the value in hidden field . which have  a fixed name. please check the link for the list of hidden field name

    https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables

    C

    heck the link For how to integrate the paypal

    http://www.codeproject.com/Articles/19184/Use-of-the-PayPal-payment-system-in-ASP-NET

    http://www.codeproject.com/Articles/42894/Introduction-to-PayPal-for-C-ASP-NET-developers

    Monday, February 13, 2012 6:26 AM
  • User9611005 posted

    Hi friends...

      Currently am using this code for paypal integration with my application...

    string businessPaypalId = "xyz@gmail.com";
            double itemCost = 10.00;
            string baseUrl = HttpContext.Current.Request.Url.AbsoluteUri.Replace(HttpContext.Current.Request.Url.PathAndQuery, "") + HttpContext.Current.Request.ApplicationPath;
            if (!baseUrl.EndsWith("/"))
                baseUrl += "/";
            string redirect = "";
            redirect += "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=" + businessPaypalId;
            redirect += "&amount=" + itemCost;
            redirect += "&item_number=1";
            redirect += "&currency_code= USD";
            redirect += "&return=" + baseUrl + "Completed.aspx";
            redirect += "&cancel_return=" + baseUrl + "Cancel.aspx";
            redirect += "&notify_url=" + baseUrl + "Notify.aspx";
             return redirect;

    But i heared that,we need to use some Gateways for transaction, is it true?? if its true then please any one help me how to use gateways in my application??
    Wednesday, February 15, 2012 6:50 AM
  • User-1673382244 posted

    Hi

    no,paypal is the one of the payment gatway but it has been two  type of paypal servers one is sandbox server onother one is live server 

    refer the link..

    https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_WPWebsitePaymentsPro

    DEMO:

    https://www.paypal.com/cgi-bin/webscr?cmd=xpt/Marketing/demo/wppro/WPProDemo-outside


    for more detail about paypal integration you download the nopcommerce shopping cart starterkit 

    In the starterkit  integrate all type of payment gatways include paypal 

    http://www.nopcommerce.com/default.aspx 

    Thanks...

    Wednesday, February 15, 2012 1:33 PM