File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -160,25 +160,43 @@ public function setInvoiceNumber($value)
160
160
return $ this ->setParameter ('invoiceNumber ' , $ value );
161
161
}
162
162
163
+ /**
164
+ * @link http://developer.authorize.net/api/reference/features/acceptjs.html Documentation on opaque data
165
+ * @return string
166
+ */
163
167
public function getOpaqueDataDescriptor ()
164
168
{
165
169
return $ this ->getParameter ('opaqueDataDescriptor ' )
166
170
? $ this ->getParameter ('opaqueDataDescriptor ' )
167
171
: $ this ->httpRequest ->request ->get ('opaqueDataDescriptor ' );
168
172
}
169
173
174
+ /**
175
+ * @link http://developer.authorize.net/api/reference/features/acceptjs.html Documentation on opaque data
176
+ * @return string
177
+ */
170
178
public function getOpaqueDataValue ()
171
179
{
172
180
return $ this ->getParameter ('opaqueDataValue ' )
173
181
? $ this ->getParameter ('opaqueDataValue ' )
174
182
: $ this ->httpRequest ->request ->get ('opaqueDataValue ' );
175
183
}
176
184
185
+ /**
186
+ * @link http://developer.authorize.net/api/reference/features/acceptjs.html Documentation on opaque data
187
+ * @param string
188
+ * @return string
189
+ */
177
190
public function setOpaqueDataDescriptor ($ value )
178
191
{
179
192
return $ this ->setParameter ('opaqueDataDescriptor ' , $ value );
180
193
}
181
194
195
+ /**
196
+ * @link http://developer.authorize.net/api/reference/features/acceptjs.html Documentation on opaque data
197
+ * @param string
198
+ * @return string
199
+ */
182
200
public function setOpaqueDataValue ($ value )
183
201
{
184
202
return $ this ->setParameter ('opaqueDataValue ' , $ value );
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ public function getData()
26
26
27
27
protected function addPayment (\SimpleXMLElement $ data )
28
28
{
29
+ /**
30
+ * @link http://developer.authorize.net/api/reference/features/acceptjs.html Documentation on opaque data
31
+ */
29
32
if ($ this ->getOpaqueDataDescriptor () && $ this ->getOpaqueDataValue ()) {
30
33
$ data ->transactionRequest ->payment ->opaqueData ->dataDescriptor = $ this ->getOpaqueDataDescriptor ();
31
34
$ data ->transactionRequest ->payment ->opaqueData ->dataValue = $ this ->getOpaqueDataValue ();
You can’t perform that action at this time.
0 commit comments