Skip to content

Commit

Permalink
Add handlers to stop recurrent payments after inapp purchase
Browse files Browse the repository at this point in the history
- Add `StopRecurrentAfterInAppPurchaseHandler` to stop user's
active recurrent payments after inapp purchase.
- Added `StopRecurrentAfterUserClaimed` to stop user's active
recurrent payments after claiming unclaimed user.

remp/crm#1177
  • Loading branch information
Matefko authored and rootpd committed Oct 22, 2020
1 parent 1d4b9bd commit 54a5097
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/events/UserClaimedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,19 @@ public function __construct($unclaimedUser, $loggedUser, $deviceToken)
$this->loggedUser = $loggedUser;
$this->deviceToken = $deviceToken;
}

public function getUnclaimedUser()
{
return $this->unclaimedUser;
}

public function getLoggedUser()
{
return $this->loggedUser;
}

public function getDeviceToken()
{
return $this->deviceToken;
}
}

0 comments on commit 54a5097

Please sign in to comment.