Need help for working with PayPal Image button

Last post 02-26-2008 3:31 PM by headmax. 4 replies.

Sort Posts:

  • Need help for working with PayPal Image button

    02-25-2008, 10:37 PM
    • Loading...
    • hseo11
    • Joined on 07-06-2006, 3:34 PM
    • Posts 39

    Hi,

    I am trying to set up PayPal account in my asp.net page.

    I'd like to save data when people click the PayPal image button

    <input type="image" src="https://www.paypal.com//en_US/i/btn/x-click-but22.gif" border="0" name="submit" id="Image1">

    and don't know what to do from here....

    (when people click the image, it will open new window. Ideally, I want to save data and close current form)

    Please help me....

     

     

    Filed under:
  • Re: Need help for working with PayPal Image button

    02-26-2008, 12:10 AM
    • Loading...
    • AliSufyanButt
    • Joined on 06-05-2007, 10:01 AM
    • Islamabad-Pakistan
    • Posts 34

    <input type="image" src="https://www.paypal.com//en_US/i/btn/x-click-but22.gif" border="0" name="submit" id="Image1">

    This alone will not server the purpose. Follow proper guidlines. You have to enclose this button in a form that will be followed to paypal's processing page. And within form tag there are certain hidden fields which will be representing the settings. one of them is returnpage parameter, whose pusrpose is that if a successful transaction goes right on there servers then return to the specified page. On that specified page you will have the logic to save the tansaction records.

    Best Regards

    Sufyan

    Ali Sufyan Butt
    Software Engineer
    Electronic Solutions Pvt. Limited
  • Re: Need help for working with PayPal Image button

    02-26-2008, 12:40 AM
    • Loading...
    • headmax
    • Joined on 12-31-2007, 1:05 PM
    • Calgary Alberta Canada
    • Posts 132

    What type of data are you trying to save pre-paypal?

  • Re: Need help for working with PayPal Image button

    02-26-2008, 8:51 AM
    • Loading...
    • hseo11
    • Joined on 07-06-2006, 3:34 PM
    • Posts 39

    I have a form that customer enter their information like address, name etc, at the end of the form, there's PayPal button to redirect them. What i want is when they click that button (paypal image button), I want to save the informaion entered. Since the image button is not my form object, I just don't know how I can trigger it. Please help

  • Re: Need help for working with PayPal Image button

    02-26-2008, 3:31 PM
    • Loading...
    • headmax
    • Joined on 12-31-2007, 1:05 PM
    • Calgary Alberta Canada
    • Posts 132

    Would an onlick event work?

    function storedata(data) {

    data1.textbox.text = databaseSpot.thisSpot;

    //etc

    }

     

    <input type="image" src="https://www.paypal.com//en_US/i/btn/x-click-but22.gif" border="0" name="submit" id="Image1" onclick="storedata(data)">

Page 1 of 1 (5 items)