|
@@ 552-554 (lines=3) @@
|
| 549 |
|
if ( $this->is_partial_capture( $notification ) ) { |
| 550 |
|
$amount = $notification->data->object->refunds->data[0]->amount / 100; |
| 551 |
|
|
| 552 |
|
if ( in_array( strtolower( $notification->data->object->currency ), WC_Stripe_Helper::no_decimal_currencies() ) ) { |
| 553 |
|
$amount = $notification->data->object->refunds->data[0]->amount; |
| 554 |
|
} |
| 555 |
|
|
| 556 |
|
return $amount; |
| 557 |
|
} |
|
@@ 573-575 (lines=3) @@
|
| 570 |
|
if ( $this->is_partial_capture( $notification ) ) { |
| 571 |
|
$amount = ( $notification->data->object->amount - $notification->data->object->amount_refunded ) / 100; |
| 572 |
|
|
| 573 |
|
if ( in_array( strtolower( $notification->data->object->currency ), WC_Stripe_Helper::no_decimal_currencies() ) ) { |
| 574 |
|
$amount = ( $notification->data->object->amount - $notification->data->object->amount_refunded ); |
| 575 |
|
} |
| 576 |
|
|
| 577 |
|
return $amount; |
| 578 |
|
} |