Skip to content

Commit

Permalink
fixing code issues
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkorotkov committed Sep 11, 2014
1 parent 07f0ace commit 7240091
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/gateways/class_wpi_stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ static function process_payment() {
'error' => false,
'data' => null
);

$data = array();

if (isset($_POST['stripeToken'])) {
$token = $_POST['stripeToken'];
Expand Down Expand Up @@ -331,7 +333,7 @@ static function process_payment() {

$amount = (float)($charge->amount/100);
//** Add payment amount */
$event_note = WPI_Functions::currency_format($amount, $invoice['invoice_id']) . __(" paid via STRIPE", WPI);
$event_note = WPI_Functions::currency_format((float)$amount, $invoice['invoice_id']) . __(" paid via STRIPE", WPI);
$event_amount = $amount;
$event_type = 'add_payment';

Expand Down

0 comments on commit 7240091

Please sign in to comment.