btcpayserver/BTCPayServer/Payments/Bitcoin/BitcoinPaymentMethodViewExtension.cs

23 lines
850 B
C#
Raw Normal View History

namespace BTCPayServer.Payments.Bitcoin
{
public class BitcoinPaymentMethodViewExtension : IPaymentMethodViewExtension
{
public BitcoinPaymentMethodViewExtension(PaymentMethodId paymentMethodId)
{
PaymentMethodId = paymentMethodId;
}
public PaymentMethodId PaymentMethodId { get; }
public void RegisterViews(PaymentMethodViewContext context)
{
2024-04-05 17:43:38 +02:00
context.RegisterCheckoutUI(new CheckoutUIPaymentMethodSettings
{
ExtensionPartial = "Bitcoin/BitcoinLikeMethodCheckout",
CheckoutBodyVueComponentName = "BitcoinLikeMethodCheckout",
CheckoutHeaderVueComponentName = "BitcoinLikeMethodCheckoutHeader",
NoScriptPartialName = "Bitcoin/BitcoinLikeMethodCheckoutNoScript"
});
}
}
}