Show / Hide Table of Contents

Class PayPalSystem

Represents PayPal (see https://www.paypal.com/) payment service.

NOTE: Before use WebClient, please set in your configuration file

  1. ServicePoint's Expect100Continue to 'false' (100-continue header can reduce performace and is not supported by some web accellerator),
  2. HttpRequest timeout and any other ServicePoint's settings if needeed.
Inheritance
System.Object
DisposableObject
ApplicationComponent
Service
Service<System.Object>
ServiceWithInstrumentationBase<System.Object>
PaySystem
PaySystemWithStaticFees
PayPalSystem
Implements
IApplicationComponent
System.IDisposable
IService
ILocalizedTimeProvider
IWebClientCaller
IPaySystemImplementation
IPaySystem
INamed
IConfigurable
IInstrumentable
IExternallyParameterized
IPaySystemWithFee
Inherited Members
PaySystemWithStaticFees.GetTransactionFlatFee(String, TransactionType)
PaySystemWithStaticFees.GetTransactionPctFee(String, TransactionType)
PaySystemWithStaticFees.DoConfigure(IConfigSectionNode)
PaySystem.CONFIG_PAYMENT_PROCESSING_SECTION
PaySystem.CONFIG_CURRENCY_MARKET_SECTION
PaySystem.CONFIG_CURRENCIES_SECTION
PaySystem.CONFIG_PAY_SYSTEM_HOST_SECTION
PaySystem.CONFIG_PAY_SYSTEM_SECTION
PaySystem.CONFIG_AUTO_START_ATTR
PaySystem.CONFIG_FEE_FLAT_ATTR
PaySystem.CONFIG_FEE_PCT_ATTR
PaySystem.CONFIG_FEE_TRAN_TYPE_ATTR
PaySystem.PaySystemHost
PaySystem.IsPaySystemHost
PaySystem.___SetPaySystemHost(IPaySystemHostImplementation)
PaySystem.Instances
PaySystem.AutoStartSystems()
PaySystem.Make<TPaySystem>(String, IConfigSectionNode)
PaySystem.Make<TPaySystem>(String, String, String)
PaySystem.Destructor()
PaySystem.Sessions
PaySystem.WebTerminal
PaySystem.ChargeFeeKind
PaySystem.TransferFeeKind
PaySystem.SupportedCurrencies
PaySystem.InstrumentationEnabled
PaySystem.DefaultSessionConnectParamsCfg
PaySystem.CurrenciesCfg
PaySystem.LogLevel
PaySystem.WebServiceCallTimeoutMs
PaySystem.KeepAlive
PaySystem.Pipelined
PaySystem.StartSession(ConnectionParameters, IPaySessionContext)
PaySystem.IsTransactionTypeSupported(TransactionType, String)
PaySystem.DefaultSessionConnectParams
PaySystem.DoVerifyPotentialTransaction(PaySession, TransactionType, Account, Account, Amount)
PaySystem.DoStart()
PaySystem.DoWaitForCompleteStop()
PaySystem.DoAcceptManagerVisit(Object, DateTime)
PaySystem.Log(MessageType, String, String, Exception, Nullable<Guid>, String)
PaySystem.StatChargeError()
PaySystem.StatCharge(Amount)
PaySystem.StatCaptureError()
PaySystem.StatCapture(Transaction, Nullable<Decimal>)
PaySystem.StatRefundError()
PaySystem.StatRefund(Transaction, Nullable<Decimal>)
PaySystem.StatVoidError()
PaySystem.StatVoid(Transaction)
PaySystem.StatTransferError()
PaySystem.StatTransfer(Amount)
ServiceWithInstrumentationBase<Object>.ExternalParameters
ServiceWithInstrumentationBase<Object>.ExternalParametersForGroups(String[])
ServiceWithInstrumentationBase<Object>.ExternalGetParameter(String, Object, String[])
ServiceWithInstrumentationBase<Object>.ExternalSetParameter(String, Object, String[])
Service<Object>.ComponentDirector
Service.CONFIG_NAME_ATTR
Service.ApplicationDontAutoStartService
Service.Status
Service.Running
Service.Name
Service.TimeLocation
Service.LocalizedTime
Service.Configure(IConfigSectionNode)
Service.Start()
Service.SignalStop()
Service.CheckForCompleteStop()
Service.WaitForCompleteStop()
Service.AcceptManagerVisit(Object, DateTime)
Service.UniversalTimeToLocalizedTime(DateTime)
Service.LocalizedTimeToUniversalTime(DateTime)
Service.AbortStart()
Service.DoSignalStop()
Service.DoCheckForCompleteStop()
Service.CheckServiceInactive()
Service.CheckServiceActive()
Service.CheckServiceActiveOrStarting()
Service.____ObtainPrivateServiceStatusLockObject()
ApplicationComponent.AllComponents
ApplicationComponent.GetAppComponentBySID(UInt64)
ApplicationComponent.GetAppComponentByCommonName(String)
ApplicationComponent.ComponentSID
ApplicationComponent.ComponentStartTime
ApplicationComponent.ComponentCommonName
DisposableObject.DisposeAndNull<T>(T)
DisposableObject.DisposeStarted
DisposableObject.Disposed
DisposableObject.EnsureObjectNotDisposed()
DisposableObject.Dispose()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Web.Pay.PayPal
Assembly: NFX.Web.dll
Syntax
public class PayPalSystem : PaySystemWithStaticFees, IApplicationComponent, IDisposable, IService, ILocalizedTimeProvider, IWebClientCaller, IPaySystemImplementation, IPaySystem, INamed, IConfigurable, IInstrumentable, IExternallyParameterized, IPaySystemWithFee

Constructors

PayPalSystem(String, IConfigSectionNode)

Declaration
public PayPalSystem(string name, IConfigSectionNode node)
Parameters
Type Name Description
System.String name
IConfigSectionNode node

PayPalSystem(String, IConfigSectionNode, Object)

Declaration
public PayPalSystem(string name, IConfigSectionNode node, object director)
Parameters
Type Name Description
System.String name
IConfigSectionNode node
System.Object director

PayPalSystem(String, String, IConfigSectionNode, Object)

Declaration
public PayPalSystem(string apiUri, string name, IConfigSectionNode node, object director)
Parameters
Type Name Description
System.String apiUri
System.String name
IConfigSectionNode node
System.Object director

PayPalSystem(Uri, String, IConfigSectionNode, Object)

Declaration
public PayPalSystem(Uri apiUri, string name, IConfigSectionNode node, object director)
Parameters
Type Name Description
System.Uri apiUri
System.String name
IConfigSectionNode node
System.Object director

Fields

PAYPAL_REALM

Declaration
public const string PAYPAL_REALM = "paypal"
Field Value
Type Description
System.String

Methods

DoCapture(PaySession, Transaction, Nullable<Decimal>, String, Object)

Declaration
protected override bool DoCapture(PaySession session, Transaction charge, decimal ? amount = default (decimal ? ), string description = null, object extraData = null)
Parameters
Type Name Description
PaySession session
Transaction charge
System.Nullable<System.Decimal> amount
System.String description
System.Object extraData
Returns
Type Description
System.Boolean
Overrides
PaySystem.DoCapture(PaySession, Transaction, Nullable<Decimal>, String, Object)

DoCharge(PaySession, Account, Account, Amount, Boolean, String, Object)

Declaration
protected override Transaction DoCharge(PaySession session, Account from, Account to, Amount amount, bool capture = true, string description = null, object extraData = null)
Parameters
Type Name Description
PaySession session
Account from
Account to
Amount amount
System.Boolean capture
System.String description
System.Object extraData
Returns
Type Description
Transaction
Overrides
PaySystem.DoCharge(PaySession, Account, Account, Amount, Boolean, String, Object)

DoRefresh(PaySession, Transaction, Object)

Declaration
protected override bool DoRefresh(PaySession session, Transaction transaction, object extraData = null)
Parameters
Type Name Description
PaySession session
Transaction transaction
System.Object extraData
Returns
Type Description
System.Boolean
Overrides
PaySystem.DoRefresh(PaySession, Transaction, Object)

DoRefund(PaySession, Transaction, Nullable<Decimal>, String, Object)

Declaration
protected override bool DoRefund(PaySession session, Transaction charge, decimal ? amount = default (decimal ? ), string description = null, object extraData = null)
Parameters
Type Name Description
PaySession session
Transaction charge
System.Nullable<System.Decimal> amount
System.String description
System.Object extraData
Returns
Type Description
System.Boolean
Overrides
PaySystem.DoRefund(PaySession, Transaction, Nullable<Decimal>, String, Object)

DoStartSession(ConnectionParameters, IPaySessionContext)

Declaration
protected override PaySession DoStartSession(ConnectionParameters cParams, IPaySessionContext context = null)
Parameters
Type Name Description
ConnectionParameters cParams
IPaySessionContext context
Returns
Type Description
PaySession
Overrides
PaySystem.DoStartSession(ConnectionParameters, IPaySessionContext)

DoTransfer(PaySession, Account, Account, Amount, String, Object)

Declaration
protected override Transaction DoTransfer(PaySession session, Account from, Account to, Amount amount, string description = null, object extraData = null)
Parameters
Type Name Description
PaySession session
Account from
Account to
Amount amount
System.String description
System.Object extraData
Returns
Type Description
Transaction
Overrides
PaySystem.DoTransfer(PaySession, Account, Account, Amount, String, Object)

DoVoid(PaySession, Transaction, String, Object)

Declaration
protected override bool DoVoid(PaySession session, Transaction transaction, string description = null, object extraData = null)
Parameters
Type Name Description
PaySession session
Transaction transaction
System.String description
System.Object extraData
Returns
Type Description
System.Boolean
Overrides
PaySystem.DoVoid(PaySession, Transaction, String, Object)

MakeDefaultSessionConnectParams(IConfigSectionNode)

Declaration
protected override ConnectionParameters MakeDefaultSessionConnectParams(IConfigSectionNode paramsSection)
Parameters
Type Name Description
IConfigSectionNode paramsSection
Returns
Type Description
ConnectionParameters
Overrides
PaySystem.MakeDefaultSessionConnectParams(IConfigSectionNode)

Implements

IApplicationComponent
System.IDisposable
IService
ILocalizedTimeProvider
IWebClientCaller
IPaySystemImplementation
IPaySystem
INamed
IConfigurable
IInstrumentable
IExternallyParameterized
IPaySystemWithFee

Extension Methods

MiscUtils.NonNull<T>(T, Func<Exception>, String)
ObjectValueConversion.AsString(Object, String, ConvertErrorHandling)
ObjectValueConversion.AsNonNullOrEmptyString(Object)
ObjectValueConversion.AsLaconicConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsJSONConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsXMLConfig(Object, ConfigSectionNode, ConvertErrorHandling)
ObjectValueConversion.AsChar(Object, Char, ConvertErrorHandling)
ObjectValueConversion.AsNullableChar(Object, Nullable<Char>, ConvertErrorHandling)
ObjectValueConversion.AsByte(Object, Byte, ConvertErrorHandling)
ObjectValueConversion.AsNullableByte(Object, Nullable<Byte>, ConvertErrorHandling)
ObjectValueConversion.AsSByte(Object, SByte, ConvertErrorHandling)
ObjectValueConversion.AsNullableSByte(Object, Nullable<SByte>, ConvertErrorHandling)
ObjectValueConversion.AsShort(Object, Int16, ConvertErrorHandling)
ObjectValueConversion.AsNullableShort(Object, Nullable<Int16>, ConvertErrorHandling)
ObjectValueConversion.AsUShort(Object, UInt16, ConvertErrorHandling)
ObjectValueConversion.AsNullableUShort(Object, Nullable<UInt16>, ConvertErrorHandling)
ObjectValueConversion.AsInt(Object, Int32, ConvertErrorHandling)
ObjectValueConversion.AsNullableInt(Object, Nullable<Int32>, ConvertErrorHandling)
ObjectValueConversion.AsUInt(Object, UInt32, ConvertErrorHandling)
ObjectValueConversion.AsNullableUInt(Object, Nullable<UInt32>, ConvertErrorHandling)
ObjectValueConversion.AsLong(Object, Int64, ConvertErrorHandling)
ObjectValueConversion.AsNullableLong(Object, Nullable<Int64>, ConvertErrorHandling)
ObjectValueConversion.AsULong(Object, UInt64, ConvertErrorHandling)
ObjectValueConversion.AsNullableULong(Object, Nullable<UInt64>, ConvertErrorHandling)
ObjectValueConversion.AsDouble(Object, Double, ConvertErrorHandling)
ObjectValueConversion.AsNullableDouble(Object, Nullable<Double>, ConvertErrorHandling)
ObjectValueConversion.AsFloat(Object, Single, ConvertErrorHandling)
ObjectValueConversion.AsNullableFloat(Object, Nullable<Single>, ConvertErrorHandling)
ObjectValueConversion.AsDecimal(Object, Decimal, ConvertErrorHandling)
ObjectValueConversion.AsNullableDecimal(Object, Nullable<Decimal>, ConvertErrorHandling)
ObjectValueConversion.AsBool(Object, Boolean, ConvertErrorHandling)
ObjectValueConversion.AsNullableBool(Object, Nullable<Boolean>, ConvertErrorHandling)
ObjectValueConversion.AsGUID(Object, Guid, ConvertErrorHandling)
ObjectValueConversion.AsNullableGUID(Object, Nullable<Guid>, ConvertErrorHandling)
ObjectValueConversion.AsDateTime(Object)
ObjectValueConversion.AsDateTime(Object, DateTime, ConvertErrorHandling)
ObjectValueConversion.AsNullableDateTime(Object, Nullable<DateTime>, ConvertErrorHandling)
ObjectValueConversion.AsGDID(Object)
ObjectValueConversion.AsGDID(Object, GDID, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDID(Object, Nullable<GDID>, ConvertErrorHandling)
ObjectValueConversion.AsGDIDSymbol(Object)
ObjectValueConversion.AsGDIDSymbol(Object, GDIDSymbol, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDIDSymbol(Object, Nullable<GDIDSymbol>, ConvertErrorHandling)
ObjectValueConversion.AsTimeSpan(Object)
ObjectValueConversion.AsTimeSpan(Object, TimeSpan, ConvertErrorHandling)
ObjectValueConversion.AsNullableTimeSpan(Object, Nullable<TimeSpan>, ConvertErrorHandling)
ObjectValueConversion.AsEnum<TEnum>(Object, TEnum, ConvertErrorHandling)
ObjectValueConversion.AsNullableEnum<TEnum>(Object, Nullable<TEnum>, ConvertErrorHandling)
ObjectValueConversion.AsUri(Object, Uri, ConvertErrorHandling)
JSONExtensions.ToJSON(Object, JSONWritingOptions)
JSONExtensions.ToJSON(Object, TextWriter, JSONWritingOptions)
JSONExtensions.ToJSON(Object, Stream, JSONWritingOptions, Encoding)
ErlObject.ToErlObject(Object)
ErlObject.ToErlObject(Object, ErlTypeOrder, Boolean)
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX