|
@@ 606-608 (lines=3) @@
|
| 603 |
|
if ( $this->is_partial_capture( $notification ) ) { |
| 604 |
|
$amount = $notification->data->object->refunds->data[0]->amount / 100; |
| 605 |
|
|
| 606 |
|
if ( in_array( strtolower( $notification->data->object->currency ), WC_Stripe_Helper::no_decimal_currencies() ) ) { |
| 607 |
|
$amount = $notification->data->object->refunds->data[0]->amount; |
| 608 |
|
} |
| 609 |
|
|
| 610 |
|
return $amount; |
| 611 |
|
} |
|
@@ 627-629 (lines=3) @@
|
| 624 |
|
if ( $this->is_partial_capture( $notification ) ) { |
| 625 |
|
$amount = ( $notification->data->object->amount - $notification->data->object->amount_refunded ) / 100; |
| 626 |
|
|
| 627 |
|
if ( in_array( strtolower( $notification->data->object->currency ), WC_Stripe_Helper::no_decimal_currencies() ) ) { |
| 628 |
|
$amount = ( $notification->data->object->amount - $notification->data->object->amount_refunded ); |
| 629 |
|
} |
| 630 |
|
|
| 631 |
|
return $amount; |
| 632 |
|
} |