<%@ 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" /