C# 클래스 Kurejito.Gateways.SagePay.VspDirect.SagePayPaymentGateway

A payment gateway interface to the SagePay VspDirect payment system.
상속: IPurchase
파일 보기 프로젝트 열기: Kurejito/Kurejito 1 사용 예제들

공개 메소드들

메소드 설명
Accepts ( Currency currency, CardType cardType ) : bool
Purchase ( string merchantReference, Kurejito.Payments.Money amount, PaymentCard card ) : PaymentResponse

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

Because the SagePay gateway requires a shopping basket, this overload will create a simple basket containing a single line item whose description is auto-generated from the supplied order details.

SagePayPaymentGateway ( IHttpPostTransport http, string vendorName, decimal vpsProtocol, GatewayMode mode ) : System

Construct a new SagePayPaymentGateway that uses the supplied IHttpPostTransport to communicate with the remote server.

비공개 메소드들

메소드 설명
CreateBasketString ( string merchantReference, decimal amount ) : string
ExtractStatus ( string pair ) : PaymentStatus
FormatPostData ( string>.IDictionary data ) : string
MakePostData ( ) : string>.IDictionary
ParseResponse ( string postResponse ) : PaymentResponse
PopulateResponseProperty ( PaymentResponse response, string pair ) : void
Tokenize ( string postResponse ) : IEnumerable
TranslateCardType ( CardType cardType ) : string

메소드 상세

Accepts() 공개 메소드

public Accepts ( Currency currency, CardType cardType ) : bool
currency System.Currency
cardType CardType
리턴 bool

Purchase() 공개 메소드

Attempts to debit the specified amount from the supplied payment card.
Because the SagePay gateway requires a shopping basket, this overload will create a simple basket containing a single line item whose description is auto-generated from the supplied order details.
public Purchase ( string merchantReference, Kurejito.Payments.Money amount, PaymentCard card ) : PaymentResponse
merchantReference string
amount Kurejito.Payments.Money
card Kurejito.Payments.PaymentCard
리턴 PaymentResponse

SagePayPaymentGateway() 공개 메소드

Construct a new SagePayPaymentGateway that uses the supplied IHttpPostTransport to communicate with the remote server.
public SagePayPaymentGateway ( IHttpPostTransport http, string vendorName, decimal vpsProtocol, GatewayMode mode ) : System
http IHttpPostTransport An instance of a class implementing to provide HTTP POST capabilities.
vendorName string The vendor name used by this SagePay installation.
vpsProtocol decimal The version of the VPS Protocol used by the remote SagePay system.
mode GatewayMode
리턴 System