File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,24 @@ abstract class AbstractRestRequest extends \Omnipay\Common\Message\AbstractReque
62
62
*/
63
63
protected $ payerId = null ;
64
64
65
+ protected $ referrerCode ;
66
+
67
+ /**
68
+ * @return string
69
+ */
70
+ public function getReferrerCode ()
71
+ {
72
+ return $ this ->referrerCode ;
73
+ }
74
+
75
+ /**
76
+ * @param string $referrerCode
77
+ */
78
+ public function setReferrerCode ($ referrerCode )
79
+ {
80
+ $ this ->referrerCode = $ referrerCode ;
81
+ }
82
+
65
83
public function getClientId ()
66
84
{
67
85
return $ this ->getParameter ('clientId ' );
@@ -146,6 +164,7 @@ public function sendData($data)
146
164
'Accept ' => 'application/json ' ,
147
165
'Authorization ' => 'Bearer ' . $ this ->getToken (),
148
166
'Content-type ' => 'application/json ' ,
167
+ 'PayPal-Partner-Attribution-Id ' => $ this ->getReferrerCode (),
149
168
),
150
169
$ body
151
170
);
You can’t perform that action at this time.
0 commit comments