C# 클래스 Kurejito.Gateways.PayPal.DirectPayment.PayPalDirectPaymentGateway

상속: IPurchase, IAuthoriseAndCapture
파일 보기 프로젝트 열기: Kurejito/Kurejito 1 사용 예제들

공개 메소드들

메소드 설명
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