C# Класс Kurejito.Gateways.FakeBank.PaymentGateway

Provides a fake, in-memory, stateless simulated payment provider for testing code that uses a IPurchase.
Наследование: IPurchase
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

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

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