2024-04-04 16:31:04 +09:00
|
|
|
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
|
2024-04-04 16:31:04 +09:00
|
|
|
{
|
|
|
|
ExtensionPartial = "Bitcoin/BitcoinLikeMethodCheckout",
|
|
|
|
CheckoutBodyVueComponentName = "BitcoinLikeMethodCheckout",
|
|
|
|
CheckoutHeaderVueComponentName = "BitcoinLikeMethodCheckoutHeader",
|
|
|
|
NoScriptPartialName = "Bitcoin/BitcoinLikeMethodCheckoutNoScript"
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|