Click here to Skip to main content
13,833,837 members
Click here to Skip to main content


576 bookmarked
Posted 14 Jun 2007
Licenced CPOL

Use of the PayPal payment system in ASP.NET

, 2 Jun 2008
This article covers aspects of using the PayPal payment system in ASP.NET
'  File:           PayPal.aspx
'  Facility:       The unit contains a payment form to be sent to PayPal.
'  Abstract:       It is used to generate a payment form and to send it to PayPal.
'  Environment:    VC 8.0
'  Author:         KB_Soft Group Ltd.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="PayPal.aspx.vb" Inherits="PayPal" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head runat="server">
    <title>Untitled Page</title>
    <form id="payForm" method="post" action="<%Response.Write (URL)%>">
        <input type="hidden" name="cmd" value="<%Response.Write (cmd)%>">
        <input type="hidden" name="business" value="<%Response.Write (business)%>">
        <input type="hidden" name="item_name" value="<%Response.Write (item_name)%>">
        <input type="hidden" name="amount" value="<%Response.Write (amount)%>">
        <input type="hidden" name="no_shipping" value="<%Response.Write (no_shipping)%>">
        <input type="hidden" name="return" value="<%Response.Write (return_url)%>">
        <input type="hidden" name="rm" value="<%Response.Write (rm)%>">
        <input type="hidden" name="notify_url" value="<%Response.Write (notify_url)%>">
        <input type="hidden" name="cancel_return" value="<%Response.Write (cancel_url)%>">
        <input type="hidden" name="currency_code" value="<%Response.Write (currency_code)%>">
        <input type="hidden" name="custom" value="<%Response.Write (request_id)%>">

    <script language="javascript">
    document.forms["payForm"].submit ();


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Alexandr Golovanov
Web Developer
Russian Federation Russian Federation
Alexandr Golovanov is a .NET developer at KB_Soft Group, an offshore software development company located in Russia, Novosibirsk. Here he has worked
on various .NET projects.

You may also be interested in...

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web02 | 2.8.190114.1 | Last Updated 3 Jun 2008
Article Copyright 2007 by Alexandr Golovanov
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid