Skip to content

Commit

Permalink
Rename payment amount to total_amount.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Oct 24, 2018
1 parent 12098cb commit 3d94b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function start( Payment $payment ) {
$this->client->set_culture( $culture );
$this->client->set_currency( $payment->get_currency() );
$this->client->set_description( $payment->get_description() );
$this->client->set_amount( $payment->get_amount()->get_amount() );
$this->client->set_amount( $payment->get_total_amount()->get_amount() );
$this->client->set_invoice_number( Util::get_invoice_number( $this->client->get_invoice_number(), $payment ) );
$this->client->set_return_url( $payment->get_return_url() );
$this->client->set_return_cancel_url( $payment->get_return_url() );
Expand Down

0 comments on commit 3d94b47

Please sign in to comment.