@@ 614-616 (lines=3) @@ | ||
611 | if ( $this->is_partial_capture( $notification ) ) { |
|
612 | $amount = $notification->data->object->refunds->data[0]->amount / 100; |
|
613 | ||
614 | if ( in_array( strtolower( $notification->data->object->currency ), WC_Stripe_Helper::no_decimal_currencies() ) ) { |
|
615 | $amount = $notification->data->object->refunds->data[0]->amount; |
|
616 | } |
|
617 | ||
618 | return $amount; |
|
619 | } |
|
@@ 635-637 (lines=3) @@ | ||
632 | if ( $this->is_partial_capture( $notification ) ) { |
|
633 | $amount = ( $notification->data->object->amount - $notification->data->object->amount_refunded ) / 100; |
|
634 | ||
635 | if ( in_array( strtolower( $notification->data->object->currency ), WC_Stripe_Helper::no_decimal_currencies() ) ) { |
|
636 | $amount = ( $notification->data->object->amount - $notification->data->object->amount_refunded ); |
|
637 | } |
|
638 | ||
639 | return $amount; |
|
640 | } |