?
Solved

How to Integrate PayPal Payment in my website

Posted on 2011-02-23
2
Medium Priority
?
843 Views
Last Modified: 2012-05-11
I need to open a Paypal payment form from my web page.

Then I need to be redirected from PayPal back to the page that called the Paypal payment form.

I need the PayPal response information to determine if the payment was accepted.

I use the RegisterExpired.aspx.cs form to call the PayPal payment form

 protected void cmdRenew_Click(object sender, EventArgs e)
    {
        //try
        // {
            //Response.Redirect("~/PaymentForm.htm");
            Response.Redirect("~/Payment.aspx");
        //PaymentForm.htm
            //return "Process OK";
        //}

I am confused. Should I be calling the htm or the aspx?

PaymentForm.htm

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick"/>
<input type="hidden" name="hosted_button_id" value="4078972"/>
<table>
<tr><td><input type="hidden" name="on0" value="You will have a choice of paying by PayPal"/>
You will have a choice of paying by PayPal</td>
</tr><tr><td>
<input type="hidden" name="os0" /></td></tr>
<tr><td><input type="hidden" name="on1" value="or paying by credit card"/>
or paying by credit card</td></tr><tr><td>
<input type="hidden" name="os1" /></td></tr>
</table>
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_subscribeCC_LG.gif"
name="submit" alt="PayPal - The safer, easier way to pay online!"/>
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"/>
</form>

This goes to PayPal. https://www.paypal.com/cgi-bin/webscr

However when I click the Cancel and Return to David Martin LLC

I get the following error.
Internet Explorer cannot display the webpage

https://www.paypal.com/us/cgi-bin/webscr?SESSION=Fp48FD7EYx4ksmO8uGknmvELGByCJ38geoXcdjtq_My56C0mke6gH8m8aE0&dispatch=5885d80a13c0db1f8e263663d3faee8d61ec37c409b56235bed2ddf64505aee9

Can you refer me to documentation that explains the process?

Thanks,

0
Comment
Question by:Dovberman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
racastillojr earned 2000 total points
ID: 34967267
When you create the paypal button, there is a section that asks you to put the url you want the user to be redirected to if they cancel the order. They also have a section that ask your for the url after they pay.

Those options are located in "step 3 Customize advanced features (optional)"  of the Create Paypal payment button".

So for example, if you select Merchant service, the you try to create the buy now button, you will see those options at the bottom of the page.
0
 

Author Closing Comment

by:Dovberman
ID: 34969971
Thanks,
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question