C# Class XMerchant.PayPal.PayPalEncryptedWebsitePayments

http://forums.asp.net/t/1236969.aspx
Afficher le fichier Open project: axefrog/XMerchant Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
Base64Encode ( byte encoded ) : string
Envelope ( byte contentBytes ) : byte[]
Sign ( byte messageBytes ) : byte[]

Method Details

Encrypt() public static méthode

public static Encrypt ( NameValueCollection vars, IPayPalSettings settings ) : NameValueCollection
vars System.Collections.Specialized.NameValueCollection
settings IPayPalSettings
Résultat System.Collections.Specialized.NameValueCollection

LoadSignerCredential() public méthode

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
Résultat void

PayPalEncryptedWebsitePayments() public méthode

public PayPalEncryptedWebsitePayments ( ) : System
Résultat System

SignAndEncrypt() public méthode

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=..."
Résultat string