< web  portfolio >

Brenda C. Mondragon

< Main Page >


ASP.NET :: PayPal


Implementation of PayPal's ASP.NET "Buy Now" control.


With the "Buy Now" button control, customers can easily purchase and pay for products or services via the web site, using PayPal to process the payment. The code automatically defaults to using the PayPal Sandbox (for testing) on development sites.


Sample code (ASPX page):


<%@ Register TagPrefix="PayPal"
   Namespace="WebSite.PayPalControls" Assembly="WebSite" %>
<PayPal:EnhancedBuyNowButton RunAt="server" ID="enhancedbuynowbutton_1"
ToolTip="Pay Now with PayPal"
DoNotAskNote="False" NoteLabel="Optional Note"
DoNotAskShipping="True" UseFormGet="False"
ButtonType="PayPalBuyNow"
Amount="80.00" CurrencyCode="USD"
ItemName="1 Hour of Web Development Time"
/>

Sample code (Code Behind):


enhancedbuynowbutton_1.UseSandbox = false;
enhancedbuynowbutton_1.BusinessEmail = ConfigurationSettings.AppSettings["paypal_seller"].ToString();

Categories:



< Main Page >

This portfolio powered by Blosxom

All content Copyright © 1995 - 2024 Brenda C. Mondragon