File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -227,11 +227,15 @@ class RestPurchaseRequest extends RestAuthorizeRequest
227
227
const SHIPPING_PREFERENCE_GET_FROM_FILE = 'GET_FROM_FILE ' ;
228
228
const SHIPPING_PREFERENCE_SET_PROVIDED_ADDRESS = 'SET_PROVIDED_ADDRESS ' ;
229
229
230
+ const USER_ACTION_COMMIT = 'COMMIT ' ;
231
+ const USER_ACTION_CONTINUE = 'CONTINUE ' ;
232
+
230
233
public function getData ()
231
234
{
232
235
$ data = parent ::getData ();
233
236
$ data ['intent ' ] = 'sale ' ;
234
237
$ data ['application_context ' ]['shipping_preference ' ] = $ this ->getShippingPreference ();
238
+ $ data ['application_context ' ]['user_action ' ] = $ this ->getUserAction ();
235
239
return $ data ;
236
240
}
237
241
@@ -240,6 +244,11 @@ public function getShippingPreference()
240
244
return $ this ->getParameter ('shippingPreference ' );
241
245
}
242
246
247
+ public function getUserAction ()
248
+ {
249
+ return $ this ->getParameter ('userAction ' );
250
+ }
251
+
243
252
/**
244
253
* Set the shipping preference
245
254
*
@@ -260,4 +269,9 @@ public function setShippingPreference($value)
260
269
{
261
270
return $ this ->setParameter ('shippingPreference ' , $ value );
262
271
}
272
+
273
+ public function setUserAction ($ value )
274
+ {
275
+ return $ this ->setParameter ('userAction ' , $ value );
276
+ }
263
277
}
You can’t perform that action at this time.
0 commit comments