C# Class PayPal.SOAP.MerchantAPICallPreHandler

Inheritance: IAPICallPreHandler
Exibir arquivo Open project: paypal/sdk-core-dotnet Class Usage Examples

Public Methods

Method Description
GetCredential ( ) : PayPal.Authentication.ICredential

Returns the instance of ICredential

GetEndpoint ( ) : string

Returns the endpoint url

GetHeaderMap ( ) : string>.Dictionary

Returns the Header

GetPayload ( ) : string

Appends SOAP Headers to payload if the credentials mandate soap headers

MerchantAPICallPreHandler ( string>.Dictionary config, IAPICallPreHandler apiCallHandler, PayPal.Authentication.ICredential credential ) : System

SOAPAPICallPreHandler decorating basic IAPICallPreHandler using ICredential

MerchantAPICallPreHandler ( string>.Dictionary config, IAPICallPreHandler apiCallHandler, string apiUserName, string accessToken, string tokenSecret ) : System

SOAPAPICallPreHandler decorating basic IAPICallPreHandler using API Username

Private Methods

Method Description
GetAttributeNamespace ( ) : string

Returns Namespace specific to PayPal APIs

GetCredentials ( ) : PayPal.Authentication.ICredential

Returns the credentials as configured in the application configuration

GetDefaultHttpHeadersSOAP ( ) : string>.Dictionary

Returns default HTTP headers used in SOAP call

GetPayloadUsingSOAPHeader ( string payload, string namespaces, string header ) : string

Returns Payload after decoration

InitCredential ( ) : void

Initializes the instance of ICredential

MerchantAPICallPreHandler ( IAPICallPreHandler apiCallHandler, string>.Dictionary config ) : System

Private constructor

Method Details

GetCredential() public method

Returns the instance of ICredential
public GetCredential ( ) : PayPal.Authentication.ICredential
return PayPal.Authentication.ICredential

GetEndpoint() public method

Returns the endpoint url
public GetEndpoint ( ) : string
return string

GetHeaderMap() public method

Returns the Header
public GetHeaderMap ( ) : string>.Dictionary
return string>.Dictionary

GetPayload() public method

Appends SOAP Headers to payload if the credentials mandate soap headers
public GetPayload ( ) : string
return string

MerchantAPICallPreHandler() public method

SOAPAPICallPreHandler decorating basic IAPICallPreHandler using ICredential
public MerchantAPICallPreHandler ( string>.Dictionary config, IAPICallPreHandler apiCallHandler, PayPal.Authentication.ICredential credential ) : System
config string>.Dictionary
apiCallHandler IAPICallPreHandler
credential PayPal.Authentication.ICredential
return System

MerchantAPICallPreHandler() public method

SOAPAPICallPreHandler decorating basic IAPICallPreHandler using API Username
public MerchantAPICallPreHandler ( string>.Dictionary config, IAPICallPreHandler apiCallHandler, string apiUserName, string accessToken, string tokenSecret ) : System
config string>.Dictionary
apiCallHandler IAPICallPreHandler
apiUserName string
accessToken string
tokenSecret string
return System