Class StripePaymentGateway
Inheritance
StripePaymentGateway
Assembly: Volo.Payment.Stripe.Domain.dll
Syntax
public class StripePaymentGateway : IPaymentGateway, ITransientDependency
Constructors
StripePaymentGateway(IPaymentRequestRepository, IPurchaseParameterListGenerator, IPlanRepository, IOptions<StripeOptions>, ILogger<StripePaymentGateway>, IDistributedEventBus, IObjectMapper)
Declaration
public StripePaymentGateway(IPaymentRequestRepository paymentRequestRepository, IPurchaseParameterListGenerator purchaseParameterListGenerator, IPlanRepository planRepository, IOptions<StripeOptions> stripeOptions, ILogger<StripePaymentGateway> logger, IDistributedEventBus eventBus, IObjectMapper objectMapper)
Parameters
Fields
modeMapping
Declaration
protected static readonly Dictionary<PaymentType, string> modeMapping
Field Value
Properties
EventBus
Declaration
protected IDistributedEventBus EventBus { get; }
Property Value
Logger
Declaration
protected ILogger<StripePaymentGateway> Logger { get; }
Property Value
ObjectMapper
Declaration
protected IObjectMapper ObjectMapper { get; }
Property Value
PaymentRequestRepository
Declaration
protected IPaymentRequestRepository PaymentRequestRepository { get; }
Property Value
PlanRepository
Declaration
protected IPlanRepository PlanRepository { get; }
Property Value
PurchaseParameterListGenerator
Declaration
protected IPurchaseParameterListGenerator PurchaseParameterListGenerator { get; }
Property Value
StripeOptions
Declaration
protected StripeOptions StripeOptions { get; }
Property Value
Methods
CompleteAsync(Dictionary<string, string>)
Declaration
public virtual Task<PaymentRequest> CompleteAsync(Dictionary<string, string> parameters)
Parameters
Returns
ConvertToDateTime(int)
Declaration
protected virtual DateTime ConvertToDateTime(int unixSeconds)
Parameters
Type |
Name |
Description |
int |
unixSeconds |
|
Returns
HandleCheckoutSessionCompletedAsync(Event)
Declaration
protected virtual Task HandleCheckoutSessionCompletedAsync(Event stripeEvent)
Parameters
Type |
Name |
Description |
Event |
stripeEvent |
|
Returns
HandleCustomerSubscriptionDeletedAsync(Event)
Declaration
protected virtual Task HandleCustomerSubscriptionDeletedAsync(Event stripeEvent)
Parameters
Type |
Name |
Description |
Event |
stripeEvent |
|
Returns
HandleCustomerSubscriptionUpdatedAsync(Event)
Declaration
protected virtual Task HandleCustomerSubscriptionUpdatedAsync(Event stripeEvent)
Parameters
Type |
Name |
Description |
Event |
stripeEvent |
|
Returns
HandleWebhookAsync(string, Dictionary<string, string>)
Declaration
public virtual Task HandleWebhookAsync(string payload, Dictionary<string, string> headers)
Parameters
Returns
IsValid(PaymentRequest, Session)
Declaration
protected virtual bool IsValid(PaymentRequest paymentRequest, Session session)
Parameters
Returns
IsValid(PaymentRequest, Dictionary<string, string>)
Declaration
public virtual bool IsValid(PaymentRequest paymentRequest, Dictionary<string, string> properties)
Parameters
Returns
Declaration
public virtual Task<PaymentRequestStartResult> StartAsync(PaymentRequest paymentRequest, PaymentRequestStartInput input)
Parameters
Returns
Implements
Extension Methods