File indexing completed on 2025-05-04 05:32:13

0001 <?php
0002 
0003 
0004 class Local_Payment_PayPal_AdaptivePayment_ResponsePayMock implements Local_Payment_PayPal_PaymentInterface
0005 {
0006 
0007     public $transactionStatus;
0008     public $payKey;
0009     public $transactionAmount;
0010     public $transactionReceiver;
0011 
0012     /** @var array|null */
0013     protected $_rawResponse;
0014 
0015     public $successful = true;
0016 
0017     public $status = null;
0018 
0019     public $transactionId = null;
0020 
0021     /**
0022      * @param array|null $rawResponse
0023      */
0024     function __construct($rawResponse = null)
0025     {
0026         if (isset($rawResponse)) {
0027             $this->_rawResponse = $rawResponse;
0028         }
0029     }
0030 
0031     /**
0032      * @return bool
0033      */
0034     public function isSuccessful()
0035     {
0036         return $this->successful;
0037     }
0038 
0039     /**
0040      * @return mixed
0041      */
0042     public function getStatus()
0043     {
0044         return $this->status;
0045     }
0046 
0047     /**
0048      * @return mixed
0049      */
0050     public function getTransactionId()
0051     {
0052         return $this->transactionId;
0053     }
0054 
0055     public function getTransactionStatus()
0056     {
0057         return $this->transactionStatus;
0058     }
0059 
0060     /**
0061      * @return mixed
0062      */
0063     public function getPaymentId()
0064     {
0065         return $this->payKey;
0066     }
0067 
0068     /**
0069      * @param $name
0070      * @return mixed
0071      */
0072     public function getField($name)
0073     {
0074         return null;
0075     }
0076 
0077     /**
0078      * @return array|null
0079      */
0080     public function getRawMessage()
0081     {
0082         return null;
0083     }
0084 
0085     /**
0086      * @return string
0087      */
0088     public function getProviderName()
0089     {
0090         return 'paypal-MOCK';
0091     }
0092 
0093     public function getTransactionAmount()
0094     {
0095         return $this->transactionAmount;
0096     }
0097 
0098     public function getTransactionReceiver()
0099     {
0100         return $this->transactionReceiver;
0101     }
0102 
0103     public function getCustom() {
0104         return null;
0105     }
0106 
0107 }