Skip to content

Commit

Permalink
Comment missing corresponding RCP status and remove duplicate/unneces…
Browse files Browse the repository at this point in the history
…sary check.
  • Loading branch information
rvdsteege committed Mar 13, 2024
1 parent 63dfff6 commit 43a2db0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,6 @@ public function payment_status_update( Payment $payment ) {
* @return void
*/
public function subscription_status_update( Subscription $pronamic_subscription ) {
if ( SubscriptionStatus::COMPLETED === $pronamic_subscription->get_status() ) {
return;
}

$membership_id = $pronamic_subscription->get_source_id();

$rcp_membership = \rcp_get_membership( $membership_id );
Expand Down
1 change: 1 addition & 0 deletions src/MembershipStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public static function transform_from_pronamic( $status ) {
case SubscriptionStatus::OPEN:
return self::PENDING;
case SubscriptionStatus::COMPLETED:
// Restrict Content Pro does not have a corresponding status.
return null;
default:
return null;
Expand Down

0 comments on commit 43a2db0

Please sign in to comment.