Get Payment Details Paypal

Last post 11-13-2009 8:10 AM by qwe123kids. 5 replies.

Sort Posts:

  • Confused [8-)] Get Payment Details Paypal

    11-12-2009, 12:51 PM
    • Participant
      878 point Participant
    • dangerouschotu
    • Member since 10-11-2008, 12:10 PM
    • Jaipur
    • Posts 318



    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="PaypalProcess.aspx.cs" Inherits="PaypalProcess" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Payment Processing...</title>
        <link href="Styles/style.css" rel="stylesheet" type="text/css" />
        <script language="javascript" type="text/javascript">
            function SubmitData() {
    
                var test = document.forms[0].submit();
            }
        </script>
    
    </head>
    <body onload="SubmitData()">
        <div style="width:500px; margin:auto; margin-top:120px; text-align:center;">
            <img src="Images/processing.gif" alt="Payment Processing" /><br />
     <b>Sending request please wait...</b>
            <form id="paymentForm" method="post" action="<% Response.Write(strPaypalUrl); %>">
            <input type="hidden" name="cmd" value="_xclick" />
            <input type="hidden" name="add" value="1" />
            <input type="hidden" name="upload" value="1" />
            <input type="hidden" name="item_name" value="Question Payment" />
            <input type="hidden" name="item_description" value="Question Payment For Acknoweldge" />
            <input type="hidden" name="amount" value="<%Response.Write(amount);%>" />
            <input type="hidden" name="business" value="<%Response.Write(strBusiness);%>" />
            <input type="hidden" name="no_shipping" value="1" />
            <input type="hidden" name="currency_code" value="USD" />
            <input type="hidden" name="cancel_return" value="<%Response.Write(strServerName); %>PaymentError.aspx" />
            <input type="hidden" name="return" value="<%Response.Write(strServerName); %>Thankyou.aspx" />
            <input type="hidden" name="bn" value="PP-BuyNowBF" />
            <input type="hidden" name="notify_url" value="<%Response.Write(strServerName); %>/IPNHandler.aspx" />
            </form>
        </div>
    </body>
    </html>
    
    


    here is my code of paypal payment is test with the sandbox account

    its working fine and i i click on the paunow button on paypal i need all the details of payment on my website not on the paypal site can anyone provide me the code for this i am in trouble .



    <form id="paymentForm" method="post" action="<% Response.Write(strPaypalUrl); %>">
            <input type="hidden" name="cmd" value="_xclick" />
            <input type="hidden" name="add" value="1" />
            <input type="hidden" name="upload" value="1" />
            <input type="hidden" name="item_name" value="Question Payment" />
            <input type="hidden" name="item_description" value="Question Payment For Acknoweldge" />
            <input type="hidden" name="amount" value="<%Response.Write(amount);%>" />
            <input type="hidden" name="business" value="<%Response.Write(strBusiness);%>" />
            <input type="hidden" name="no_shipping" value="1" />
            <input type="hidden" name="currency_code" value="USD" />
            <input type="hidden" name="cancel_return" value="<%Response.Write(strServerName); %>PaymentError.aspx" />
            <input type="hidden" name="return" value="<%Response.Write(strServerName); %>Thankyou.aspx" />
            <input type="hidden" name="bn" value="PP-BuyNowBF" />
            <input type="hidden" name="notify_url" value="<%Response.Write(strServerName); %>/IPNHandler.aspx" /
    Thanks & Regards,
    Please 'mark as answer' my post if they are helpful.
  • Re: Get Payment Details Paypal

    11-13-2009, 2:30 AM
    • All-Star
      24,841 point All-Star
    • qwe123kids
    • Member since 03-27-2008, 5:49 AM
    • Mumbai
    • Posts 4,244

    hi,

    <% Response.Write(strPaypalUrl); %>

    just Chnage The above

    action="Http://www.Myserver.com/Recevivedata.aspx"

    and let it submit..

    on load event of page

    Request["name_of_controls"];

    Thanks
    Avinash Tiwari

    Remember to click “Mark as Answer” on the post, if it helps you.

    MY Blog

    Hacking Inside .net exe
  • Re: Get Payment Details Paypal

    11-13-2009, 4:42 AM
    • Participant
      878 point Participant
    • dangerouschotu
    • Member since 10-11-2008, 12:10 PM
    • Jaipur
    • Posts 318

    i have already done this and working fine the mai problem is that ho to get details of the payment after the payment is done
    on paypal on my site that's my problem 

    Thanks & Regards,
    Please 'mark as answer' my post if they are helpful.
  • Re: Get Payment Details Paypal

    11-13-2009, 5:06 AM
    • All-Star
      24,841 point All-Star
    • qwe123kids
    • Member since 03-27-2008, 5:49 AM
    • Mumbai
    • Posts 4,244

    Once Th payment is Sucessfull the Paypal may commucate back To U with Some paramters..

    From that u will come to know the payment is done or not..


    Thanks
    Avinash Tiwari

    Remember to click “Mark as Answer” on the post, if it helps you.

    MY Blog

    Hacking Inside .net exe
  • Re: Get Payment Details Paypal

    11-13-2009, 7:52 AM
    • Participant
      878 point Participant
    • dangerouschotu
    • Member since 10-11-2008, 12:10 PM
    • Jaipur
    • Posts 318

    you can see this image this will show the transaction id on paypal site i need this page info to my site means when i click on paypal button 
    it redirects to my site page no this page in image above so what parameter i need to send please check i add new parameter

    <input type="hidden" name="rm" value="2" />

    and use the IPN code from https://www.paypal.com/us/cgi-bin/webscr?cmd=p/pdn/ipn-codesamples-pop-outside#aspnet

    how to so this please you can help me der.
     

    Thanks & Regards,
    Please 'mark as answer' my post if they are helpful.
  • Re: Get Payment Details Paypal

    11-13-2009, 8:10 AM
    • All-Star
      24,841 point All-Star
    • qwe123kids
    • Member since 03-27-2008, 5:49 AM
    • Mumbai
    • Posts 4,244

    The code U seeing is Server to server Hit..

    U can get the info on the page only


    Thanks
    Avinash Tiwari

    Remember to click “Mark as Answer” on the post, if it helps you.

    MY Blog

    Hacking Inside .net exe
Page 1 of 1 (6 items)