Show / Hide Table of Contents

Class TwoCheckoutPaymentGateway

Inheritance
object
TwoCheckoutPaymentGateway
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.TwoCheckout
Assembly: Volo.Payment.TwoCheckout.Domain.dll
Syntax
public class TwoCheckoutPaymentGateway : IPaymentGateway, ITransientDependency

Constructors

TwoCheckoutPaymentGateway(IPaymentRequestRepository, IPurchaseUrlGenerator, IOptions<TwoCheckoutOptions>)

Declaration
public TwoCheckoutPaymentGateway(IPaymentRequestRepository paymentRequestRepository, IPurchaseUrlGenerator purchaseUrlGenerator, IOptions<TwoCheckoutOptions> twoCheckoutOptions)
Parameters
Type Name Description
IPaymentRequestRepository paymentRequestRepository
IPurchaseUrlGenerator purchaseUrlGenerator
IOptions<TwoCheckoutOptions> twoCheckoutOptions

Fields

ReturnUrlPropertyName

Declaration
protected const string ReturnUrlPropertyName = "ReturnUrl"
Field Value
Type Description
string

Properties

PaymentRequestRepository

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

PurchaseUrlGenerator

Declaration
protected IPurchaseUrlGenerator PurchaseUrlGenerator { get; }
Property Value
Type Description
IPurchaseUrlGenerator

TwoCheckoutOptions

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

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>

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, 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