mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
Allow overriding UI of checkout in payment handler (#992)
This commit is contained in:
committed by
Nicolas Dorier
parent
989a7b863e
commit
43ee22f965
@@ -46,6 +46,7 @@ namespace BTCPayServer.Payments
|
||||
Money amount, PaymentMethodId paymentMethodId);
|
||||
|
||||
IEnumerable<PaymentMethodId> GetSupportedPaymentMethods();
|
||||
CheckoutUIPaymentMethodSettings GetCheckoutUISettings();
|
||||
}
|
||||
|
||||
public interface IPaymentMethodHandler<TSupportedPaymentMethod, TBTCPayNetwork> : IPaymentMethodHandler
|
||||
@@ -92,6 +93,11 @@ namespace BTCPayServer.Payments
|
||||
|
||||
throw new NotSupportedException("Invalid supportedPaymentMethod");
|
||||
}
|
||||
|
||||
public virtual CheckoutUIPaymentMethodSettings GetCheckoutUISettings()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
object IPaymentMethodHandler.PreparePayment(ISupportedPaymentMethod supportedPaymentMethod, StoreData store,
|
||||
BTCPayNetworkBase network)
|
||||
|
||||
Reference in New Issue
Block a user