C# Класс XMerchant.PayPal.PayPalEncryptedWebsitePayments

http://forums.asp.net/t/1236969.aspx
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Encrypt ( NameValueCollection vars, IPayPalSettings settings ) : NameValueCollection
LoadSignerCredential ( string signerPfxCertPath, string signerPfxCertPassword ) : void

PayPalEncryptedWebsitePayments ( ) : System
SignAndEncrypt ( string clearText ) : string

Sign a message and encrypt it for the recipient.

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

Метод Описание
Base64Encode ( byte encoded ) : string
Envelope ( byte contentBytes ) : byte[]
Sign ( byte messageBytes ) : byte[]

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

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

public static Encrypt ( NameValueCollection vars, IPayPalSettings settings ) : NameValueCollection
vars System.Collections.Specialized.NameValueCollection
settings IPayPalSettings
Результат System.Collections.Specialized.NameValueCollection

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

public LoadSignerCredential ( string signerPfxCertPath, string signerPfxCertPassword ) : void
signerPfxCertPath string File path to the signer's public certificate plus private key in PKCS#12 format
signerPfxCertPassword string Password for signer's private key
Результат void

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

public PayPalEncryptedWebsitePayments ( ) : System
Результат System

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

Sign a message and encrypt it for the recipient.
public SignAndEncrypt ( string clearText ) : string
clearText string Name value pairs must be separated by \n (vbLf or Chr(10)), for example "cmd=_xclick\nbusiness=..."
Результат string