Paypal Direct

Instantiate Direct
$direct = eden('paypal')->direct('[API_USERNAME]', '[API_PASSWORD]', '[API_SIGNATURE]');
Direct Methods
Method Arguments Returns Description
$direct->getResponse(); none string Process a credit card direct payment
$direct->setAmount($amount);
  1. integer
  2. - or float Item amount
Eden_Paypal_Direct Set item amount
$direct->setCardNumber($cardNumber);
  1. string Credit
  2. - card number
Eden_Paypal_Direct Set credit card number
$direct->setCardType($cardType);
  1. string Credit
  2. - card type
Eden_Paypal_Direct Set credit card type
$direct->setCity($city);
  1. string City
Eden_Paypal_Direct Set cardholder city
$direct->setCountryCode($countryCode);
  1. string Country
  2. - Code
Eden_Paypal_Direct Set cardholder country code
$direct->setCurrency($currency);
  1. string Currency
  2. - code
Eden_Paypal_Direct Set currency code
$direct->setCvv2($cvv2);
  1. string 3
  2. - - digit cvv number
Eden_Paypal_Direct Set Card Verification Value
$direct->setEmail($email);
  1. string Email
  2. - address
Eden_Paypal_Direct Set cardholder email address
$direct->setExpirationDate($expirationDate);
  1. string Credit
  2. - card expiration date
Eden_Paypal_Direct Set credit card expiration date
$direct->setFirstName($firstName);
  1. string First
  2. - name
Eden_Paypal_Direct Set cardholder first name
$direct->setLastName($lastName);
  1. string Last
  2. - name
Eden_Paypal_Direct Set cardholder last name
$direct->setNonReferencedCredit(); none Eden_Paypal_Direct Issue a credit to a card not referenced by the original transaction.
$direct->setState($state);
  1. string State
Eden_Paypal_Direct Set cardholder state
$direct->setStreet($street);
  1. string Street
Eden_Paypal_Direct Set cardholder street
$direct->setZip($zip);
  1. string Zip
  2. - code
Eden_Paypal_Direct Set cardholder zip code

© 2012 Openovate Labs. All rights reserved.