Constructor
paypalbutton
__construct
(string $email, [bool $sandbox = false])
-
string
$email
-
bool
$sandbox
Add an item.
void
additem
(string $itemname, string $itemnumber, float $amount, [int $quantity = 1], [float $weight = 0], [float $handling = 0], [float $shipping = 0], [float $tax = 0])
-
string
$itemname
-
string
$itemnumber
-
float
$amount
-
int
$quantity
-
float
$weight
-
float
$handling
-
float
$shipping
-
float
$tax
Output the button.
mixed
output
([bool $return = false])
Set the URL the user is returned to after cancelling the payment.
void
setcancelreturnurl
(string $url)
Set the order currency.
void
setcurrency
(string $currency)
Set the custom image.
void
setcustomimage
(string $image)
Set the URL for instant notifications.
void
setnotifyurl
(string $url)
Set the URL the user is returned to after payment.
void
setreturnurl
(string $url)
Set the button-type.
void
settype
(string $type)
Set the weight unit.
void
setweightunit
(string $unit)