btcpayserver/BTCPayServer/Payments/ICheckoutModelExtension.cs

23 lines
657 B
C#
Raw Normal View History

using BTCPayServer.Models.InvoicingModels;
using BTCPayServer.Services.Invoices;
using Microsoft.AspNetCore.Mvc;
namespace BTCPayServer.Payments
{
2024-10-07 19:58:08 +09:00
public record CheckoutModelContext(
CheckoutModel Model,
Data.StoreData Store,
Data.StoreBlob StoreBlob,
InvoiceEntity InvoiceEntity,
IUrlHelper UrlHelper,
PaymentPrompt Prompt,
2024-10-07 19:15:40 +09:00
IPaymentMethodHandler Handler);
2024-10-07 19:58:08 +09:00
public interface ICheckoutModelExtension
{
public PaymentMethodId PaymentMethodId { get; }
string Image { get; }
string Badge { get; }
2024-10-07 19:58:08 +09:00
void ModifyCheckoutModel(CheckoutModelContext context);
}
}