C# Class EGSW.Services.Payments.PaypalHelper

Represents paypal helper
ファイルを表示 Open project: careerengine/EGSW-Project Class Usage Examples

Public Methods

Method Description
CheckSuccess ( AbstractResponseType abstractResponse, string &errorMsg ) : bool

Checks response

GetPaymentStatus ( string paymentStatus, string pendingReason ) : PaymentStatus

Gets a payment status

GetPaypalCurrency ( string CurrencyCode ) : CurrencyCodeType

Get Paypal currency code

Method Details

CheckSuccess() public static method

Checks response
public static CheckSuccess ( AbstractResponseType abstractResponse, string &errorMsg ) : bool
abstractResponse PayPal.PayPalAPIInterfaceService.Model.AbstractResponseType response
errorMsg string Error message if exists
return bool

GetPaymentStatus() public static method

Gets a payment status
public static GetPaymentStatus ( string paymentStatus, string pendingReason ) : PaymentStatus
paymentStatus string PayPal payment status
pendingReason string PayPal pending reason
return PaymentStatus

GetPaypalCurrency() public static method

Get Paypal currency code
public static GetPaypalCurrency ( string CurrencyCode ) : CurrencyCodeType
CurrencyCode string
return CurrencyCodeType