Overview

Namespaces

  • mcfedr
    • Paypal
      • Exceptions
      • Notifications
      • Products
  • PHP

Classes

  • CartProduct
  • Product
  • Subscription
  • Overview
  • Namespace
  • Class
  • Tree

Class CartProduct

Describes a product to be sold Some vars effect selling Some are set when receiving a notification

mcfedr\Paypal\Products\Product
Extended by mcfedr\Paypal\Products\CartProduct
Namespace: mcfedr\Paypal\Products
Located at mcfedr/Paypal/Products/CartProduct.php
Methods summary
public
# __construct( array $vars = null, string $number = '' )

Get a product from $vars

Get a product from $vars

Parameters

$vars
array
$vars
$number
string
$number use when more than one product eg '1', '2'

Overrides

mcfedr\Paypal\Products\Product::__construct()
public
# setParams( array & $params, string $suffix = '' )

Sets up the array with paypal vars for $product

Sets up the array with paypal vars for $product

Parameters

$params
array
$params
$suffix
string
$suffix used when more than one product is set eg "_1", "_2"

Overrides

mcfedr\Paypal\Products\Product::setParams()
Properties summary
public integer $quantity
#

quanitity of product to sell

quanitity of product to sell

public float $handling
#

overall handling fee for these items

overall handling fee for these items

public float $discount
#

discount given for all these items

discount given for all these items

public float $tax
#

tax for all these items

tax for all these items

public float $shipping
#

cost of shipping the first of these items

cost of shipping the first of these items

public float $shipping2
#

cost of shipping further items

cost of shipping further items

public float $weight
#

weight of this item if your account is setup to use weight base shipping

weight of this item if your account is setup to use weight base shipping

public float $total
#

total amount paid for these items Set when received by notification

total amount paid for these items Set when received by notification

public float $shippingTotal
#

total amount of shipping paid for these items Set when received by notification

total amount of shipping paid for these items Set when received by notification

Properties inherited from mcfedr\Paypal\Products\Product
$amount, $fee, $id, $name
Paypal API documentation generated by ApiGen 2.8.0