示例#1
0
 public static bool IsSupported(this PullPaymentData data, BTCPayServer.Payments.PaymentMethodId paymentId)
 {
     return(data.GetBlob().SupportedPaymentMethods.Contains(paymentId));
 }
示例#2
0
 public abstract Task <string> IsPaymentMethodAllowedBasedOnInvoiceAmount(StoreBlob storeBlob,
                                                                          Dictionary <CurrencyPair, Task <RateResult> > rate, Money amount, PaymentMethodId paymentMethodId);
示例#3
0
 public PaymentMethod GetPaymentMethodInInvoice(InvoiceEntity invoice, PaymentMethodId paymentMethodId)
 {
     return(invoice.GetPaymentMethod(paymentMethodId));
 }
示例#4
0
 public abstract string GetCryptoImage(PaymentMethodId paymentMethodId);
示例#5
0
 public abstract string GetPaymentMethodName(PaymentMethodId paymentMethodId);
示例#6
0
 public PaymentIdFilter(PaymentMethodId paymentMethodId)
 {
     _paymentMethodId = paymentMethodId;
 }
示例#7
0
 public bool Match(PaymentMethodId paymentMethodId)
 {
     return(paymentMethodId == _paymentMethodId);
 }
示例#8
0
 public bool Match(PaymentMethodId paymentMethodId)
 {
     return(_filters.Any(f => f.Match(paymentMethodId)));
 }
示例#9
0
 public bool Match(PaymentMethodId paymentMethodId)
 {
     return(false);
 }
示例#10
0
 public bool Match(PaymentMethodId paymentMethodId)
 {
     return(this.predicate(paymentMethodId));
 }
示例#11
0
 public bool Match(PaymentMethodId paymentMethodId)
 {
     return(_a.Match(paymentMethodId) || _b.Match(paymentMethodId));
 }
示例#12
0
 public static IPaymentFilter WhereIs(PaymentMethodId paymentMethodId)
 {
     ArgumentNullException.ThrowIfNull(paymentMethodId);
     return(new PaymentIdFilter(paymentMethodId));
 }