/** * 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; }
/** * @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; }
/** * Is true if the buyer chose the default shipping option. * * @return boolean */ public function getShippingOptionName() { return $this->collection->getValue('SHIPPINGOPTIONNAME'); }
public function getSeverityCode() { return $this->collection->getValue('SEVERITYCODE'); }
/** * @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'); }
/** * @return string payer's last name */ public function getLastName() { return $this->collection->getValue('LASTNAME'); }
/** * A unique identifier of the specific payment request. * * @return String */ public function getPaymentRequestId() { return $this->collection->getValue('PAYMENTREQUESTID'); }
/** * Payer's suffix. * Character length and limitations: 12 single-byte characters. * * @return string */ public function getSuffix() { return $this->collection->getValue('SUFFIX'); }
/** * 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'); }
/** * 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'); }
/** * @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'); }
/** * 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'); }
/** * Tax amount for each billing cycle during this payment period. * * @return string */ public function getTaxAmount() { return $this->collection->getValue('TAXAMT'); }
/** * @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'); }
/** * @return string total of all refunds associated with this transaction. */ public function getTotalRefundAmount() { return $this->collection->getValue('TOTALREFUNDEDAMT'); }
/** * Issue number of Maestro or Solo card. * * @return string */ public function getIssueNumber() { return $this->collection->getValue('ISSUENUMBER'); }
/** * 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'); }
/** * 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'); }
/** * 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'); }
/** * Payer's business name. * * @return string */ public function getBussinessName() { return $this->collection->getValue('BUSINESS'); }
/** * Phone number. * * @return string */ public function getPhoneNumber() { return $this->collection->getValue('SHIPTOPHONENUM'); }