Skip to content

Commit

Permalink
Improve amount type.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Jul 2, 2021
1 parent f292fa1 commit 4a0bea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Client.php
Expand Up @@ -133,7 +133,7 @@ private function send_request( $version, $namespace, $method, $output, $paramete
/**
* Transaction start
*
* @param float $amount Transaction amount.
* @param int $amount Transaction amount.
* @param string $ip_address IP address.
* @param string $finish_url Finish URL.
* @param array $request_param Request parameters.
Expand Down
2 changes: 1 addition & 1 deletion src/Gateway.php
Expand Up @@ -229,7 +229,7 @@ public function start( Payment $payment ) {

// Start transaction.
$result = $this->client->transaction_start(
$payment->get_total_amount()->get_minor_units(),
$payment->get_total_amount()->get_minor_units()->to_int(),
Util::get_ip_address(),
$payment->get_return_url(),
$request
Expand Down

0 comments on commit 4a0bea9

Please sign in to comment.