diff --git a/src/Api/Controllers/AccountsController.cs b/src/Api/Controllers/AccountsController.cs index f8073e4ac4..258168143f 100644 --- a/src/Api/Controllers/AccountsController.cs +++ b/src/Api/Controllers/AccountsController.cs @@ -441,6 +441,17 @@ namespace Bit.Api.Controllers throw new BadRequestException(ModelState); } + [HttpPost("iap-check")] + public async Task PostIapCheck(IapCheckRequestModel model) + { + var user = await _userService.GetUserByPrincipalAsync(User); + if(user == null) + { + throw new UnauthorizedAccessException(); + } + await _userService.IapCheckAsync(user, model.PaymentMethodType.Value); + } + [HttpPost("premium")] public async Task PostPremium(PremiumRequestModel model) {