Paypal Transaction

Instantiate Transaction
$transaction = eden('paypal')->transaction('[API_USERNAME]', '[API_PASSWORD]', '[API_SIGNATURE]');
Transaction Methods
Method Arguments Returns Description
$transaction->getDetail(); none string Obtains information about a specific transaction.
$transaction->manageStatus(); none string Accepts or denys a pending transaction held by Fraud Management Filters.
$transaction->refundTransaction(); none string Issues a refund to the PayPal account holder associated with a transaction.
$transaction->search(); none string Searches transaction history for transactions that meet the specified criteria.
$transaction->setAction($action);
  1. string
Eden_Paypal_Transaction Valid values are Accept or Deny
$transaction->setAmount($amount);
  1. string Item
  2. - amount
Eden_Paypal_Transaction Set item amount
$transaction->setCardNumber($cardNumber);
  1. string Credit
  2. - card number
Eden_Paypal_Transaction Search by credit card number
$transaction->setCurrency($currency);
  1. string Currency
  2. - code
Eden_Paypal_Transaction Set currency code
$transaction->setEmail($email);
  1. string
Eden_Paypal_Transaction Search by the buyer’s email address.
$transaction->setEndDate($end);
  1. string
Eden_Paypal_Transaction The latest transaction date to be included in the search.
$transaction->setNote($note);
  1. string
Eden_Paypal_Transaction Custom memo about the refund.
$transaction->setReceiptId($receiptId);
  1. string
Eden_Paypal_Transaction Search by the PayPal Account Optional receipt ID.
$transaction->setReceiver($receiver);
  1. string
Eden_Paypal_Transaction Search by the receiver’s email address. If the merchant account has only one email address, this is the primary email. It can also be a non-primary email address.
$transaction->setRefundType($refundType);
  1. string
Eden_Paypal_Transaction Valid values are Full - Full refund (default). Partial – Partial refund. ExternalDispute – External dispute. Other – Other type of refund.
$transaction->setStartDate($start);
  1. string
Eden_Paypal_Transaction The earliest transaction date at which to start the search.
$transaction->setStatus($status);
  1. string Currency
  2. - code
Eden_Paypal_Transaction Search by transaction status.
$transaction->setStoreId($storeId);
  1. string
Eden_Paypal_Transaction ID of the merchant store. This field is required for point-of-sale transactions.
$transaction->setTransactionId($transactionId);
  1. string
Eden_Paypal_Transaction Search by the transaction ID. The returned results are from the merchant’s transaction records.

© 2012 Openovate Labs. All rights reserved.