src/Merchant/Client.php 1 location
|
@@ 59-65 (lines=7) @@
|
| 56 |
|
* @return Init |
| 57 |
|
* @throws HttpException |
| 58 |
|
*/ |
| 59 |
|
public function init(string $orderId, int $amount, array $extra = []): Init |
| 60 |
|
{ |
| 61 |
|
$extra['Amount'] = $amount; |
| 62 |
|
$extra['OrderId'] = $orderId; |
| 63 |
|
|
| 64 |
|
return new Init($this->send($this->makeRequest('Init', $extra))); |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
/** |
| 68 |
|
* Init a new payment session. |
src/E2Card/Client.php 1 location
|
@@ 94-101 (lines=8) @@
|
| 91 |
|
* @return Init |
| 92 |
|
* @throws HttpException |
| 93 |
|
*/ |
| 94 |
|
public function init(string $orderId, string $cardId, int $amount, array $extra = []): Init |
| 95 |
|
{ |
| 96 |
|
$extra['Amount'] = $amount; |
| 97 |
|
$extra['CardId'] = $cardId; |
| 98 |
|
$extra['OrderId'] = $orderId; |
| 99 |
|
|
| 100 |
|
return new Init($this->send($this->makeRequest('Init', $extra))); |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
/** |
| 104 |
|
* Make payout to card. |