1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class ProcessorResponse
9 *
10 * Collection of payment response related fields returned from a payment request
11 *
12 * @package PayPal\Api
13 *
14 * @property string response_code
15 * @property string avs_code
16 * @property string cvv_code
17 * @property string advice_code
18 * @property string eci_submitted
19 * @property string vpas
20 */
21 class ProcessorResponse extends PayPalModel
22 {
23 /**
24 * Paypal normalized response code, generated from the processor's specific response code
25 *
26 * @param string $response_code
27 *
28 * @return $this
29 */
30 public function setResponseCode($response_code)
31 {
32 $this->response_code = $response_code;
33 return $this;
34 }
35
36 /**
37 * Paypal normalized response code, generated from the processor's specific response code
38 *
39 * @return string
40 */
41 public function getResponseCode()
42 {
43 return $this->response_code;
44 }
45
46 /**
47 * Address Verification System response code. https://developer.paypal.com/webapps/developer/docs/classic/api/AVSResponseCodes/
48 *
49 * @param string $avs_code
50 *
51 * @return $this
52 */
53 public function setAvsCode($avs_code)
54 {
55 $this->avs_code = $avs_code;
56 return $this;
57 }
58
59 /**
60 * Address Verification System response code. https://developer.paypal.com/webapps/developer/docs/classic/api/AVSResponseCodes/
61 *
62 * @return string
63 */
64 public function getAvsCode()
65 {
66 return $this->avs_code;
67 }
68
69 /**
70 * CVV System response code. https://developer.paypal.com/webapps/developer/docs/classic/api/AVSResponseCodes/
71 *
72 * @param string $cvv_code
73 *
74 * @return $this
75 */
76 public function setCvvCode($cvv_code)
77 {
78 $this->cvv_code = $cvv_code;
79 return $this;
80 }
81
82 /**
83 * CVV System response code. https://developer.paypal.com/webapps/developer/docs/classic/api/AVSResponseCodes/
84 *
85 * @return string
86 */
87 public function getCvvCode()
88 {
89 return $this->cvv_code;
90 }
91
92 /**
93 * Provides merchant advice on how to handle declines related to recurring payments
94 * Valid Values: ["01_NEW_ACCOUNT_INFORMATION", "02_TRY_AGAIN_LATER", "02_STOP_SPECIFIC_PAYMENT", "03_DO_NOT_TRY_AGAIN", "03_REVOKE_AUTHORIZATION_FOR_FUTURE_PAYMENT", "21_DO_NOT_TRY_AGAIN_CARD_HOLDER_CANCELLED_RECURRRING_CHARGE", "21_CANCEL_ALL_RECURRING_PAYMENTS"]
95 *
96 * @param string $advice_code
97 *
98 * @return $this
99 */
100 public function setAdviceCode($advice_code)
101 {
102 $this->advice_code = $advice_code;
103 return $this;
104 }
105
106 /**
107 * Provides merchant advice on how to handle declines related to recurring payments
108 *
109 * @return string
110 */
111 public function getAdviceCode()
112 {
113 return $this->advice_code;
114 }
115
116 /**
117 * Response back from the authorization. Provided by the processor
118 *
119 * @param string $eci_submitted
120 *
121 * @return $this
122 */
123 public function setEciSubmitted($eci_submitted)
124 {
125 $this->eci_submitted = $eci_submitted;
126 return $this;
127 }
128
129 /**
130 * Response back from the authorization. Provided by the processor
131 *
132 * @return string
133 */
134 public function getEciSubmitted()
135 {
136 return $this->eci_submitted;
137 }
138
139 /**
140 * Visa Payer Authentication Service status. Will be return from processor
141 *
142 * @param string $vpas
143 *
144 * @return $this
145 */
146 public function setVpas($vpas)
147 {
148 $this->vpas = $vpas;
149 return $this;
150 }
151
152 /**
153 * Visa Payer Authentication Service status. Will be return from processor
154 *
155 * @return string
156 */
157 public function getVpas()
158 {
159 return $this->vpas;
160 }
161
162 }
163