Paypal Checkout

Instantiate Checkout
$checkout = eden('paypal')->checkout('[API_USERNAME]', '[API_PASSWORD]', '[API_SIGNATURE]');
Checkout Methods
Method Arguments Returns Description
$checkout->checkAddress(); none string Confirms whether a postal address and postal code match those of the specified PayPal account holder.
$checkout->doMassPayment(); none string Makes a payment to one or more PayPal account holders.
$checkout->getBalance(); none string Obtains the available balance for a PayPal account.
$checkout->getDetail(); none string Obtains your Pal ID, which is the PayPal-assigned merchant account number, and other information about your account. You need the account number when working with dynamic versions of PayPal buttons and logos.
$checkout->getResponse($return, $cancel);
  1. string The
  2. - Return URL
  3. string The
  4. - Cancel URL
  5. array
string Sends checkout information to paypal
$checkout->setAmount($amount);
  1. integer
  2. - or float Amount of the item
Eden_Paypal_Checkout Set the amount of the item
$checkout->setCallBack(); none Eden_Paypal_Checkout Set callback to true
$checkout->setSolutionType($solutioType = 'Sole');
  1. string
Eden_Paypal_Checkout Set Solution type, value are Sole Buyer does not need to create a PayPal account to check out. This is referred to as PayPal Account Optional. Mark Buyer must have a PayPal account to check out.
$checkout->setCurrencies(); none Eden_Paypal_Checkout Indicates whether to return all currencies.
$checkout->setCurrency($currency);
  1. string Currency
  2. - code
Eden_Paypal_Checkout Set currrency
$checkout->setEmail($email);
  1. string consumer
  2. - email
Eden_Paypal_Checkout Set consumer email
$checkout->setEmailSubject($emailSubject);
  1. boolean
Eden_Paypal_Checkout Indicates whether to return all currencies.
$checkout->setItemAmount($itemAmount);
  1. integer
  2. - or float Total amount of the item
Eden_Paypal_Checkout Set total amount of the item
$checkout->setItemDescription($itemDescription);
  1. string Item
  2. - Description
Eden_Paypal_Checkout Set item descrption
$checkout->setItemName($itemName);
  1. string Item
  2. - name
Eden_Paypal_Checkout Set item name
$checkout->setQuantity($quantity);
  1. integer Item
  2. - quantity
Eden_Paypal_Checkout Set quantity of item
$checkout->setShippingAmount($shippingAmount);
  1. integer
  2. - or float Shipping amount of the item
Eden_Paypal_Checkout Set shipping amount of the item
$checkout->setStreet($street);
  1. string consumer
  2. - street
Eden_Paypal_Checkout Set consumer street
$checkout->setZip($zip);
  1. string consumer
  2. - zip code
Eden_Paypal_Checkout Set consumer zip code

© 2012 Openovate Labs. All rights reserved.