1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-20 11:04:31 -05:00

apple webhook key

This commit is contained in:
Kyle Spearrin 2019-09-13 09:58:30 -04:00
parent 2f7cd3ee95
commit a370dd1149
3 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@
public virtual string StripeWebhookKey { get; set; } public virtual string StripeWebhookKey { get; set; }
public virtual string StripeWebhookSecret { get; set; } public virtual string StripeWebhookSecret { get; set; }
public virtual string BitPayWebhookKey { get; set; } public virtual string BitPayWebhookKey { get; set; }
public virtual string AppleWebhookKey { get; set; }
public virtual PayPalSettings PayPal { get; set; } = new PayPalSettings(); public virtual PayPalSettings PayPal { get; set; } = new PayPalSettings();
public class PayPalSettings public class PayPalSettings

View File

@ -51,7 +51,7 @@ namespace Bit.Billing.Controllers
var key = HttpContext.Request.Query.ContainsKey("key") ? var key = HttpContext.Request.Query.ContainsKey("key") ?
HttpContext.Request.Query["key"].ToString() : null; HttpContext.Request.Query["key"].ToString() : null;
if(key != _billingSettings.PayPal.WebhookKey) if(key != _billingSettings.AppleWebhookKey)
{ {
return new BadRequestResult(); return new BadRequestResult();
} }

View File

@ -73,6 +73,7 @@
"stripeWebhookKey": "SECRET", "stripeWebhookKey": "SECRET",
"stripeWebhookSecret": "SECRET", "stripeWebhookSecret": "SECRET",
"bitPayWebhookKey": "SECRET", "bitPayWebhookKey": "SECRET",
"appleWebhookKey": "SECRET",
"payPal": { "payPal": {
"production": false, "production": false,
"businessId": "AD3LAUZSNVPJY", "businessId": "AD3LAUZSNVPJY",