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:
parent
2f7cd3ee95
commit
a370dd1149
@ -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
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user