#!/usr/local/bin/perl -w ################################################################ # paypal.pl # # Perl Toolkit for PayPal v.0.50 # http://www.paypal.com/pdn # # Copyright (c) 2004 PayPal Inc # # Released under Common Public License 1.0 # http://opensource.org/licenses/cpl.php ################################################################ use strict; use paypalLib; my(%paypal,%form); %form = &paypalLib::get_submission; ## BEGIN CUSTOM CONFIGURATION HERE ##Configuration Settings $paypal{business}='davesauctions@castlesfamilystore.com'; $paypal{site_url}='http://davesauctions.castlesfamilystore.com/'; $paypal{image_url}=''; $paypal{success_url}='Daves_Auctions/perl_toolkit/success.pl'; $paypal{cancel_url}='Daves_Auctions/perl_toolkit/error.pl'; $paypal{notify_url}='Daves_Auctions/perl_toolkit/ipn/ipn.pl'; $paypal{return_method}='2'; ##1=GET 2=POST $paypal{currency_code}='USD'; ##{USD,GBP,JPY,CAD,EUR} $paypal{lc}='US'; $paypal{url}='https://www.paypal.com/cgi-bin/webscr'; #$paypal{url}='https://www.sandbox.paypal.com/cgi-bin/webscr'; $paypal{bn}='toolkit-perl'; $paypal{cmd}='_xclick'; ##Payment Page Settings $paypal{display_comment}='0'; ##0=yes 1=no $paypal{comment_header}='Comments'; $paypal{continue_button_text}='Continue >>'; $paypal{background_color}=''; ## ""=white 1=black $paypal{display_shipping_address}=''; ## ""=yes 1=no $paypal{display_comment}='1'; ## ""=yes 1=no ##Product Settings $paypal{item_name}="$form{item_name}"; $paypal{item_number}="$form{item_number}"; $paypal{amount}="$form{amount}"; $paypal{on0}="$form{on0}"; $paypal{os0}="$form{os0}"; $paypal{on1}="$form{on1}"; $paypal{os1}="$form{os1}"; $paypal{quantity}="$form{quantity}"; $paypal{edit_quantity}=""; ## 1=yes ""=no $paypal{invoice}="$form{invoice}"; $paypal{tax}="$form{tax}"; ##Shipping and Taxes $paypal{shipping_amount}="$form{shipping_amount}"; $paypal{shipping_amount_per_item}=""; $paypal{handling_amount}=""; $paypal{custom_field}=""; ##Customer Settings $paypal{firstname}="$form{firstname}"; $paypal{lastname}="$form{lastname}"; $paypal{address1}="$form{address1}"; $paypal{address2}="$form{address2}"; $paypal{city}="$form{city}"; $paypal{state}="$form{state}"; $paypal{zip}="$form{zip}"; $paypal{email}="$form{email}"; $paypal{phone_1}="$form{phone1}"; $paypal{phone_2}="$form{phone2}"; $paypal{phone_3}="$form{phone3}"; ## END CUSTOM CONFIGURATION HERE ## DO NOT EDIT ANYTHING AFTER THIS LINE print "Content-type: text/html\n\n"; print <
Processing Transaction . . .
HTML 1;