Oct
12
2008

Cat PayPal Buttom

Class PayPal Buttom

Simple class for make payment with paypal.

< ?php
$options_class = array(
'custom'=>'my custom passthrough variable',
'currencycode'=>'EUR',
'form_target'=>'_blank',
'style_class'=>'paypalbutton',
'width'=>'150',
'image_url'=>'http://www.jc21.com.au/paypal/logo.jpg',
'buttonimage'=>'/paypal/purchase.jpg',
'buttontext'=>'I agree, proceed to Payment',
'no_shipping'=>1,
'return'=>'http://my-syte/paypal.php',
'notify_url'=>'http://my-syte/paypal/ipn.php',
'cancel_return'=>'http://my-syte/paypal_cancel.php'
);
$button = new Cat_Paypal_Buttom($options_class);
// Cart elements
$options = array(
'name'=>'Nome prodotto',
'quantity'=>1,
'amount'=>18,0,
'item_number'=>'prod11',
'shipping'=>5,0,
'tax'=>1,8
);
$buttom->AddItem($options);
$options = array(
'name'=>'Nome prodotto 1',
'quantity'=>1,
'amount'=>18,0,
'item_number'=>'prod11',
'shipping'=>5,0,
'tax'=>1,8
);
$buttom->AddItem($options);

echo $button->OutputButton();
$button->__destruct();
?>
download
Size: 4.14 KB
Hits : 16

Share and Enjoy:
  • Facebook
  • del.icio.us
  • Twitter
  • Google Bookmarks
  • Digg
  • Technorati
  • MySpace
  • Live
  • BlinkList
  • Add to favorites
  • email
  • RSS
  • Mixx
  • Bitacoras.com
  • blogmarks
  • Blogosphere News
  • Blogplay
  • connotea
  • Current
  • Diggita
  • Diigo
  • DZone
  • eKudos
  • Internetmedia
  • LinkedIn
  • MSN Reporter
  • Reddit
  • Scoopeo
  • Segnalo
  • Slashdot
  • Socialogs
  • Sphinn
Written by Davide in: Library,php | Tags: , ,

1 Comment »

  • Hi, gr8 post thanks for posting. Information is useful!

    Comment | June 15, 2009

RSS feed for comments on this post. TrackBack URL

Leave a comment

Theme: TheBuckmaker.com Magazine Style Templates