|
@@ 623-625 (lines=3) @@
|
| 620 |
|
if ( $this->is_partial_capture( $notification ) ) { |
| 621 |
|
$amount = $notification->data->object->refunds->data[0]->amount / 100; |
| 622 |
|
|
| 623 |
|
if ( in_array( strtolower( $notification->data->object->currency ), WC_Stripe_Helper::no_decimal_currencies() ) ) { |
| 624 |
|
$amount = $notification->data->object->refunds->data[0]->amount; |
| 625 |
|
} |
| 626 |
|
|
| 627 |
|
return $amount; |
| 628 |
|
} |
|
@@ 644-646 (lines=3) @@
|
| 641 |
|
if ( $this->is_partial_capture( $notification ) ) { |
| 642 |
|
$amount = ( $notification->data->object->amount - $notification->data->object->amount_refunded ) / 100; |
| 643 |
|
|
| 644 |
|
if ( in_array( strtolower( $notification->data->object->currency ), WC_Stripe_Helper::no_decimal_currencies() ) ) { |
| 645 |
|
$amount = ( $notification->data->object->amount - $notification->data->object->amount_refunded ); |
| 646 |
|
} |
| 647 |
|
|
| 648 |
|
return $amount; |
| 649 |
|
} |