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