C# Class Worki.Service.PaymentService

Inheritance: IPaymentService
Datei anzeigen Open project: tah91/eworkyWebSite

Public Methods

Method Description
PayWithPayPal ( int id, string returnUrl, string cancelUrl, string ipnUrl, string senderEmail, IEnumerable payments, IPaymentHandler paymentHandler, PaymentConstants config ) : string
PaymentService ( ILogger logger ) : System
ProcessPaypalIPNMessage ( System.Web.HttpRequestBase paypalRequest, string &status, string &requestId, PaymentConstants config ) : List

Private Methods

Method Description
CreatePaypalRequest ( string requestFormat, string responseFormat, PaymentConstants config ) : HttpWebRequest

Create a HttpWebRequest for Paypal with required Headers

ValidateIPNRequest ( System.Web.HttpRequestBase paypalRequest, PaymentConstants config ) : string

Validate the paypal request via postbackurl

Method Details

PayWithPayPal() public method

public PayWithPayPal ( int id, string returnUrl, string cancelUrl, string ipnUrl, string senderEmail, IEnumerable payments, IPaymentHandler paymentHandler, PaymentConstants config ) : string
id int
returnUrl string
cancelUrl string
ipnUrl string
senderEmail string
payments IEnumerable
paymentHandler IPaymentHandler
config Worki.Infrastructure.Repository.PaymentConstants
return string

PaymentService() public method

public PaymentService ( ILogger logger ) : System
logger ILogger
return System

ProcessPaypalIPNMessage() public method

public ProcessPaypalIPNMessage ( System.Web.HttpRequestBase paypalRequest, string &status, string &requestId, PaymentConstants config ) : List
paypalRequest System.Web.HttpRequestBase
status string
requestId string
config Worki.Infrastructure.Repository.PaymentConstants
return List