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();
?>

Size: 4.14 KB
Hits : 14