Class PayPalSystem
Represents PayPal (see https://www.paypal.com/) payment service.
NOTE: Before use WebClient, please set in your configuration file
- ServicePoint's Expect100Continue to 'false' (100-continue header can reduce performace and is not supported by some web accellerator),
- HttpRequest timeout and any other ServicePoint's settings if needeed.
Inheritance
System.Object
PayPalSystem
Implements
System.IDisposable
Inherited Members
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()
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
PayPalSystem(String, IConfigSectionNode, Object)
Declaration
public PayPalSystem(string name, IConfigSectionNode node, object director)
Parameters
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
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
Overrides
DoRefresh(PaySession, Transaction, Object)
Declaration
protected override bool DoRefresh(PaySession session, Transaction transaction, object extraData = null)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
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
DoStartSession(ConnectionParameters, IPaySessionContext)
Declaration
protected override PaySession DoStartSession(ConnectionParameters cParams, IPaySessionContext context = null)
Parameters
Returns
Overrides
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
Returns
Overrides
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
MakeDefaultSessionConnectParams(IConfigSectionNode)
Declaration
protected override ConnectionParameters MakeDefaultSessionConnectParams(IConfigSectionNode paramsSection)
Parameters
Returns
Overrides
Implements
System.IDisposable
Extension Methods