/**
  * Status of the recurring payment profile.
  *
  * @return Status
  */
 public function getStatus()
 {
     $value = $this->collection->getValue('STATUS');
     if ($value == null) {
         return null;
     }
     switch ($value) {
         case 'ActiveProfile':
             return Status::getActive();
             break;
         case 'PendingProfile':
             return Status::getPending();
             break;
     }
     return null;
 }
示例#2
0
 /**
  * @param ItemCategory $itemCategory
  */
 public function getItemCategory()
 {
     $category = $this->collection->getValue($key);
     if ($category == 'digital') {
         return ItemCategory::getDigital();
     }
     if ($category == 'physical') {
         return ItemCategory::getPhysical();
     }
     return null;
 }
示例#3
0
 /**
  * Is true if the buyer chose the default shipping option.
  *
  * @return boolean
  */
 public function getShippingOptionName()
 {
     return $this->collection->getValue('SHIPPINGOPTIONNAME');
 }
示例#4
0
文件: Error.php 项目: rdeeb/paypal
 public function getSeverityCode()
 {
     return $this->collection->getValue('SEVERITYCODE');
 }
示例#5
0
 /**
  * @return string
  */
 public function getFaildInitialAmountAction()
 {
     return $this->collection->getValue('FAILEDINITAMTACTION');
 }
 /**
  * A timestamped token by which you identify to PayPal that you are
  * processing this payment with Express Checkout.
  * The token expires after three hours.If you set the token in the
  * SetExpressCheckout request, the value of the token in the response is
  * identical to the value in the request.
  * Character length and limitations: 20 single-byte characters
  *
  * @return String
  */
 public function getToken()
 {
     return $this->collection->getValue('TOKEN');
 }
示例#7
0
文件: Payer.php 项目: rdeeb/paypal
 /**
  * @return string payer's last name
  */
 public function getLastName()
 {
     return $this->collection->getValue('LASTNAME');
 }
示例#8
0
文件: Payment.php 项目: rdeeb/paypal
 /**
  * A unique identifier of the specific payment request.
  *
  * @return String
  */
 public function getPaymentRequestId()
 {
     return $this->collection->getValue('PAYMENTREQUESTID');
 }
示例#9
0
 /**
  * Payer's suffix.
  * Character length and limitations: 12 single-byte characters.
  *
  * @return string
  */
 public function getSuffix()
 {
     return $this->collection->getValue('SUFFIX');
 }
示例#10
0
文件: Seller.php 项目: rdeeb/paypal
 /**
  * Unique identifier for the merchant.
  * For parallel payments, this field contains either the Payer Id or the
  * email address of the merchant.
  *
  * @return string
  */
 public function getPayPalAccountId()
 {
     return $this->collection->getValue('SELLERPAYPALACCOUNTID');
 }
示例#11
0
文件: Schedule.php 项目: rdeeb/paypal
 /**
  * This field indicates whether you would like PayPal to automatically bill
  * the outstanding balance amount in the next billing cycle. The outstanding
  * balance is the total amount of any previously failed scheduled payments
  * that have yet to be successfully paid.
  *
  * @return AutoBill
  */
 public function getAutoBill()
 {
     return $this->collection->getValue('AUTOBILLOUTAMT');
 }
示例#12
0
文件: EbayItem.php 项目: rdeeb/paypal
 /**
  * @return string   The unique identifier provided by eBay for this order
  *                  from the buyer.
  */
 public function getCartId()
 {
     $this->collection->getValue('EBAYCARTID');
 }
 /**
  * The survey response selected by the buyer on the PayPal Review page.
  * Limitations: 15 single-byte characters
  *
  * @return string
  */
 public function getSurveyChoice()
 {
     return $this->collection->getValue('SURVEYCHOICESELECTED');
 }
示例#14
0
 /**
  * An identification code for use by third-party applications to identify
  * transactions. Character length and limitations: 32 single-byte
  * alphanumeric characters
  *
  * @return string
  */
 public function getButtonSource()
 {
     return $this->collection->getValue('BUTTONSOURCE');
 }
示例#15
0
 /**
  * Tax amount for each billing cycle during this payment period.
  *
  * @return string
  */
 public function getTaxAmount()
 {
     return $this->collection->getValue('TAXAMT');
 }
示例#16
0
 /**
  * @return type the amount of the last successful payment received for this profile.
  */
 public function getLastPaymentAmount()
 {
     return $this->collection->getValue('LASTPAYMENTAMT');
 }
 /**
  * Flag to indicate whether you need to redirect the customer to back to
  * PayPal after completing the transaction.
  *
  * @return string
  */
 public function getSuccessRedirectRequested()
 {
     return $this->collection->getValue('SUCCESSPAGEREDIRECTREQUESTED');
 }
示例#18
0
 /**
  * @return string total of all refunds associated with this transaction. 
  */
 public function getTotalRefundAmount()
 {
     return $this->collection->getValue('TOTALREFUNDEDAMT');
 }
示例#19
0
 /**
  * Issue number of Maestro or Solo card.
  *
  * @return string
  */
 public function getIssueNumber()
 {
     return $this->collection->getValue('ISSUENUMBER');
 }
示例#20
0
 /**
  * The merchant's own unique reference or invoice number.
  * Character length and limitations: 127 single-byte alphanumeric characters.
  *
  * @return string
  */
 public function getProfileReference()
 {
     return $this->collection->getValue('PROFILEREFERENCE');
 }
 /**
  * @return string final scheduled payment due date before the profile expires. 
  */
 public function getFinalPaymentDue()
 {
     return $this->collection->getValue('FINALPAYMENTDUEDATE');
 }
示例#22
0
 /**
  * Appliaction-specific error values indicating more about the error
  * condition.
  *
  * @return string
  */
 public function getAck()
 {
     return $this->collection->getValue('ACK');
 }
 /** 
  * Recurring payments profile ID returned in the 
  * CreateRecurringPaymentsProfile response. For each action, an error is 
  * returned if the recurring payments profile has a status that is not 
  * compatible with the action. Errors are returned in the following cases: 
  *  Cancel - Profile status is not Active or Suspended. 
  *  Suspend - Profile status is not Active. 
  *  Reactivate - Profile status is not Suspended.
  *
  * @return string 
  */
 public function getProfileId()
 {
     return $this->collection->getValue('PROFILEID');
 }
示例#24
0
 /**
  * Status of street address on file with PayPal.
  * Valid values are:
  * none, Confirmed, or Unconfirmed
  *
  * @return string
  */
 public function getAddressStatus()
 {
     return $this->collection->getValue('ADDRESSSTATUS');
 }
示例#25
0
 /**
  * Payer's business name.
  *
  * @return string
  */
 public function getBussinessName()
 {
     return $this->collection->getValue('BUSINESS');
 }
示例#26
0
文件: Address.php 项目: rdeeb/paypal
 /**
  * Phone number.
  *
  * @return string
  */
 public function getPhoneNumber()
 {
     return $this->collection->getValue('SHIPTOPHONENUM');
 }