Skip to content

Commit

Permalink
Merge branch '1493-conversions-inapp-purchase' into 'master'
Browse files Browse the repository at this point in the history
Change getting content in `PaymentStatusChangeHandler`

See merge request remp/crm!1122
  • Loading branch information
Matefko committed Sep 29, 2020
2 parents 4911953 + 7bba8e4 commit 6e53e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/PaymentChangeStatusEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct($payment, $sendEmail = false)

public function isPaid()
{
return $this->payment->status === PaymentsRepository::STATUS_PAID;
return in_array($this->payment->status, [PaymentsRepository::STATUS_PAID, PaymentsRepository::STATUS_PREPAID]);
}

public function getPayment()
Expand Down

0 comments on commit 6e53e12

Please sign in to comment.