Class PayPalPaymentGateway
Inheritance
PayPalPaymentGateway
Assembly: Volo.Payment.PayPal.Domain.dll
Syntax
public class PayPalPaymentGateway : IPaymentGateway, ITransientDependency
Constructors
PayPalPaymentGateway(PayPalHttpClient, IPurchaseParameterListGenerator, IPaymentRequestRepository)
Declaration
public PayPalPaymentGateway(PayPalHttpClient payPalHttpClient, IPurchaseParameterListGenerator purchaseParameterListGenerator, IPaymentRequestRepository paymentRequestRepository)
Parameters
Properties
PayPalHttpClient
Declaration
protected PayPalHttpClient PayPalHttpClient { get; }
Property Value
Type |
Description |
PayPalHttpClient |
|
PaymentRequestRepository
Declaration
protected IPaymentRequestRepository PaymentRequestRepository { get; }
Property Value
PurchaseParameterListGenerator
Declaration
protected IPurchaseParameterListGenerator PurchaseParameterListGenerator { get; }
Property Value
Methods
CompleteAsync(Dictionary<string, string>)
Declaration
public virtual Task<PaymentRequest> CompleteAsync(Dictionary<string, string> parameters)
Parameters
Returns
HandleWebhookAsync(string, Dictionary<string, string>)
Declaration
public virtual Task HandleWebhookAsync(string payload, Dictionary<string, string> headers)
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
UpdatePaymentRequestStatusAsync(Guid, Order)
Declaration
protected virtual Task<PaymentRequest> UpdatePaymentRequestStatusAsync(Guid paymentRequestId, Order order)
Parameters
Type |
Name |
Description |
Guid |
paymentRequestId |
|
Order |
order |
|
Returns
Implements
Extension Methods