C# Class EGSW.Services.Payments.PayPalDirectPaymentProcessor

Inheritance: IPaymentMethod
ファイルを表示 Open project: careerengine/EGSW-Project

Public Methods

Method Description
PayPalDirectPaymentProcessor ( ICustomerService customerService, IWebHelper webHelper ) : System
ProcessPayment ( ProcessPaymentRequest processPaymentRequest ) : ProcessPaymentResult
VerifyIpn ( string formString, string>.Dictionary &values ) : bool

Verifies IPN

Protected Methods

Method Description
AuthorizeOrSale ( ProcessPaymentRequest processPaymentRequest, bool authorizeOnly ) : ProcessPaymentResult
GetApiVersion ( ) : string
GetPaypalCountryCodeType ( string country ) : CountryCodeType

Get Paypal country code

GetPaypalCreditCardType ( string creditCardType ) : CreditCardTypeType

Get Paypal credit card type

GetService ( ) : PayPalAPIInterfaceServiceService

Private Methods

Method Description
GetPaypalUrl ( ) : string

Gets Paypal URL

Method Details

AuthorizeOrSale() protected method

protected AuthorizeOrSale ( ProcessPaymentRequest processPaymentRequest, bool authorizeOnly ) : ProcessPaymentResult
processPaymentRequest ProcessPaymentRequest
authorizeOnly bool
return ProcessPaymentResult

GetApiVersion() protected method

protected GetApiVersion ( ) : string
return string

GetPaypalCountryCodeType() protected method

Get Paypal country code
protected GetPaypalCountryCodeType ( string country ) : CountryCodeType
country string Country
return CountryCodeType

GetPaypalCreditCardType() protected method

Get Paypal credit card type
protected GetPaypalCreditCardType ( string creditCardType ) : CreditCardTypeType
creditCardType string Credit card type
return CreditCardTypeType

GetService() protected method

protected GetService ( ) : PayPalAPIInterfaceServiceService
return PayPal.PayPalAPIInterfaceService.PayPalAPIInterfaceServiceService

PayPalDirectPaymentProcessor() public method

public PayPalDirectPaymentProcessor ( ICustomerService customerService, IWebHelper webHelper ) : System
customerService ICustomerService
webHelper IWebHelper
return System

ProcessPayment() public method

public ProcessPayment ( ProcessPaymentRequest processPaymentRequest ) : ProcessPaymentResult
processPaymentRequest ProcessPaymentRequest
return ProcessPaymentResult

VerifyIpn() public method

Verifies IPN
public VerifyIpn ( string formString, string>.Dictionary &values ) : bool
formString string Form string
values string>.Dictionary Values
return bool