Overview

Namespaces

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

Classes

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

Class Product

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

Direct known subclasses

mcfedr\Paypal\Products\CartProduct, mcfedr\Paypal\Products\Subscription
Abstract
Namespace: mcfedr\Paypal\Products
Located at mcfedr/Paypal/Products/Product.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'
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
Properties summary
public integer $id
#

unique id of this product

unique id of this product

public string $name
#

name of product

name of product

public float $amount
#

Cost per item

Cost per item

public float $fee
#

total fee paid to paypal for these items Set when received by notification (ie you received $total-mcfedr\Paypal\Products\Product::$fee)

total fee paid to paypal for these items Set when received by notification (ie you received $total-mcfedr\Paypal\Products\Product::$fee)

Paypal API documentation generated by ApiGen 2.8.0