Show / Hide Table of Contents

Class StripePaymentGateway

Inheritance
object
StripePaymentGateway
Implements
IPaymentGateway
ITransientDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Payment.Stripe
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
Type Name Description
IPaymentRequestRepository paymentRequestRepository
IPurchaseParameterListGenerator purchaseParameterListGenerator
IPlanRepository planRepository
IOptions<StripeOptions> stripeOptions
ILogger<StripePaymentGateway> logger
IDistributedEventBus eventBus
IObjectMapper objectMapper

Fields

modeMapping

Declaration
protected static readonly Dictionary<PaymentType, string> modeMapping
Field Value
Type Description
Dictionary<PaymentType, string>

Properties

EventBus

Declaration
protected IDistributedEventBus EventBus { get; }
Property Value
Type Description
IDistributedEventBus

Logger

Declaration
protected ILogger<StripePaymentGateway> Logger { get; }
Property Value
Type Description
ILogger<StripePaymentGateway>

ObjectMapper

Declaration
protected IObjectMapper ObjectMapper { get; }
Property Value
Type Description
IObjectMapper

PaymentRequestRepository

Declaration
protected IPaymentRequestRepository PaymentRequestRepository { get; }
Property Value
Type Description
IPaymentRequestRepository

PlanRepository

Declaration
protected IPlanRepository PlanRepository { get; }
Property Value
Type Description
IPlanRepository

PurchaseParameterListGenerator

Declaration
protected IPurchaseParameterListGenerator PurchaseParameterListGenerator { get; }
Property Value
Type Description
IPurchaseParameterListGenerator

StripeOptions

Declaration
protected StripeOptions StripeOptions { get; }
Property Value
Type Description
StripeOptions

Methods

CompleteAsync(Dictionary<string, string>)

Declaration
public virtual Task<PaymentRequest> CompleteAsync(Dictionary<string, string> parameters)
Parameters
Type Name Description
Dictionary<string, string> parameters
Returns
Type Description
Task<PaymentRequest>

ConvertToDateTime(int)

Declaration
protected virtual DateTime ConvertToDateTime(int unixSeconds)
Parameters
Type Name Description
int unixSeconds
Returns
Type Description
DateTime

HandleCheckoutSessionCompletedAsync(Event)

Declaration
protected virtual Task HandleCheckoutSessionCompletedAsync(Event stripeEvent)
Parameters
Type Name Description
Event stripeEvent
Returns
Type Description
Task

HandleCustomerSubscriptionDeletedAsync(Event)

Declaration
protected virtual Task HandleCustomerSubscriptionDeletedAsync(Event stripeEvent)
Parameters
Type Name Description
Event stripeEvent
Returns
Type Description
Task

HandleCustomerSubscriptionUpdatedAsync(Event)

Declaration
protected virtual Task HandleCustomerSubscriptionUpdatedAsync(Event stripeEvent)
Parameters
Type Name Description
Event stripeEvent
Returns
Type Description
Task

HandleWebhookAsync(string, Dictionary<string, string>)

Declaration
public virtual Task HandleWebhookAsync(string payload, Dictionary<string, string> headers)
Parameters
Type Name Description
string payload
Dictionary<string, string> headers
Returns
Type Description
Task

IsValid(PaymentRequest, Session)

Declaration
protected virtual bool IsValid(PaymentRequest paymentRequest, Session session)
Parameters
Type Name Description
PaymentRequest paymentRequest
Session session
Returns
Type Description
bool

IsValid(PaymentRequest, Dictionary<string, string>)

Declaration
public virtual bool IsValid(PaymentRequest paymentRequest, Dictionary<string, string> properties)
Parameters
Type Name Description
PaymentRequest paymentRequest
Dictionary<string, string> properties
Returns
Type Description
bool

StartAsync(PaymentRequest, PaymentRequestStartInput)

Declaration
public virtual Task<PaymentRequestStartResult> StartAsync(PaymentRequest paymentRequest, PaymentRequestStartInput input)
Parameters
Type Name Description
PaymentRequest paymentRequest
PaymentRequestStartInput input
Returns
Type Description
Task<PaymentRequestStartResult>

Implements

IPaymentGateway
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform