mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
22 lines
850 B
C#
22 lines
850 B
C#
namespace BTCPayServer.Payments.Bitcoin
|
|
{
|
|
public class BitcoinPaymentMethodViewExtension : IPaymentMethodViewExtension
|
|
{
|
|
public BitcoinPaymentMethodViewExtension(PaymentMethodId paymentMethodId)
|
|
{
|
|
PaymentMethodId = paymentMethodId;
|
|
}
|
|
public PaymentMethodId PaymentMethodId { get; }
|
|
|
|
public void RegisterViews(PaymentMethodViewContext context)
|
|
{
|
|
context.RegisterCheckoutUI(new CheckoutUIPaymentMethodSettings
|
|
{
|
|
ExtensionPartial = "Bitcoin/BitcoinLikeMethodCheckout",
|
|
CheckoutBodyVueComponentName = "BitcoinLikeMethodCheckout",
|
|
CheckoutHeaderVueComponentName = "BitcoinLikeMethodCheckoutHeader",
|
|
NoScriptPartialName = "Bitcoin/BitcoinLikeMethodCheckoutNoScript"
|
|
});
|
|
}
|
|
}
|
|
}
|