C# Класс Kurejito.Gateways.PayPal.DirectPayment.PayPalDirectPaymentGateway

Наследование: IPurchase, IAuthoriseAndCapture
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Accepts ( Currency currency, CardType cardType ) : bool
Authorise ( string merchantReference, Kurejito.Payments.Money amount, PaymentCard card ) : PaymentResponse
Capture ( ) : PaymentResponse
PayPalDirectPaymentGateway ( IHttpPostTransport httpTransport, PayPalEnvironment environment ) : System

Initializes a new instance of the PayPalDirectPaymentGateway class.

Purchase ( string merchantReference, Kurejito.Payments.Money amount, PaymentCard card ) : PaymentResponse

Attempts to debit the specified amount from the supplied payment card.

Приватные методы

Метод Описание
BuildDirectPaymentRequestMessage ( PaymentCard card, Kurejito.Payments.Money amount, string paymentAction ) : string
Post ( string message ) : string
ProcessResponse ( string response ) : PaymentResponse
StatusFromShortMessage ( string shortMessage ) : PaymentStatus
ThrowIfFailPaymentChecks ( Kurejito.Payments.Money amount, PaymentCard card ) : void

Описание методов

Accepts() публичный Метод

public Accepts ( Currency currency, CardType cardType ) : bool
currency System.Currency
cardType CardType
Результат bool

Authorise() публичный Метод

public Authorise ( string merchantReference, Kurejito.Payments.Money amount, PaymentCard card ) : PaymentResponse
merchantReference string
amount Kurejito.Payments.Money
card Kurejito.Payments.PaymentCard
Результат PaymentResponse

Capture() публичный Метод

public Capture ( ) : PaymentResponse
Результат PaymentResponse

PayPalDirectPaymentGateway() публичный Метод

Initializes a new instance of the PayPalDirectPaymentGateway class.
public PayPalDirectPaymentGateway ( IHttpPostTransport httpTransport, PayPalEnvironment environment ) : System
httpTransport IHttpPostTransport The transport for PayPal communication.
environment PayPalEnvironment The pay pal environment.
Результат System

Purchase() публичный Метод

Attempts to debit the specified amount from the supplied payment card.
public Purchase ( string merchantReference, Kurejito.Payments.Money amount, PaymentCard card ) : PaymentResponse
merchantReference string An alphanumeric reference supplied by the merchant that uniquely identifies this transaction
amount Kurejito.Payments.Money The amount of money to be debited from the payment card (includes the ISO4217 currency code).
card Kurejito.Payments.PaymentCard An instance of containing the customer's payment card details.
Результат PaymentResponse