Skip to content

Commit 6ccd935

Browse files
Update Payments.php
1 parent bd93bd7 commit 6ccd935

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/Payments.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class Payments
3636
*/
3737
protected $api = false;
3838

39+
protected $user;
3940
/**
4041
* @param $name_bank
4142
* @return static
@@ -117,6 +118,16 @@ public function api ($api)
117118
return $this;
118119
}
119120

121+
/**
122+
* @param $info_user
123+
* @return $this
124+
*/
125+
public function infoUser ($info_user)
126+
{
127+
$this->user = $info_user;
128+
129+
return $this;
130+
}
120131

121132
/**
122133
* request bank for payment
@@ -126,7 +137,7 @@ public function api ($api)
126137
public function request()
127138
{
128139
$bank = $this->makeBank();
129-
return $bank->request($this->api, $this->amount, $this->callbackURL);
140+
return $bank->request($this->api, $this->amount, $this->callbackURL, $this->user);
130141
}
131142

132143
/**

0 commit comments

Comments
 (0)