C# Класс Dwolla.Helpers.DwollaSignatureUtil

Показать файл Открыть проект

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

Метод Описание
GenerateSignature ( string appKey, string appSecret, string orderId, System.DateTime utcTimestamp ) : string
UnixEpochTime ( System.DateTime utcTime ) : long
VerifyCallbackSignature ( string appSecret, string receivedCallbackSignature, string receivedCheckoutId, decimal receivedAmount ) : bool

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

Метод Описание
GetHmacsha1InHex ( string key, string data ) : string

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

GenerateSignature() публичный статический Метод

public static GenerateSignature ( string appKey, string appSecret, string orderId, System.DateTime utcTimestamp ) : string
appKey string
appSecret string
orderId string
utcTimestamp System.DateTime
Результат string

UnixEpochTime() публичный статический Метод

public static UnixEpochTime ( System.DateTime utcTime ) : long
utcTime System.DateTime
Результат long

VerifyCallbackSignature() публичный статический Метод

public static VerifyCallbackSignature ( string appSecret, string receivedCallbackSignature, string receivedCheckoutId, decimal receivedAmount ) : bool
appSecret string
receivedCallbackSignature string
receivedCheckoutId string
receivedAmount decimal
Результат bool