C# Class XMerchant.PayPal.PayPalEncryptedWebsitePayments

http://forums.asp.net/t/1236969.aspx
Datei anzeigen Open project: axefrog/XMerchant Class Usage Examples

Public Methods

Method 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

Method Description
Base64Encode ( byte encoded ) : string
Envelope ( byte contentBytes ) : byte[]
Sign ( byte messageBytes ) : byte[]

Method Details

Encrypt() public static method

public static Encrypt ( NameValueCollection vars, IPayPalSettings settings ) : NameValueCollection
vars System.Collections.Specialized.NameValueCollection
settings IPayPalSettings
return System.Collections.Specialized.NameValueCollection

LoadSignerCredential() public method

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
return void

PayPalEncryptedWebsitePayments() public method

public PayPalEncryptedWebsitePayments ( ) : System
return System

SignAndEncrypt() public method

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=..."
return string