Show / Hide Table of Contents

Class StripeSystem

Represents Stripe (see https://stripe.com) payment service. Some functions which implement IPaySystem interface don't use all supplied parameters

Inheritance
System.Object
DisposableObject
ApplicationComponent
Service
Service<System.Object>
ServiceWithInstrumentationBase<System.Object>
PaySystem
StripeSystem
Implements
IApplicationComponent
System.IDisposable
IService
ILocalizedTimeProvider
IWebClientCaller
IPaySystemImplementation
IPaySystem
INamed
IConfigurable
IInstrumentable
IExternallyParameterized
Inherited Members
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.DoRefresh(PaySession, Transaction, Object)
PaySystem.DoConfigure(IConfigSectionNode)
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
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.Stripe
Assembly: NFX.Web.dll
Syntax
public sealed class StripeSystem : PaySystem, IApplicationComponent, IDisposable, IService, ILocalizedTimeProvider, IWebClientCaller, IPaySystemImplementation, IPaySystem, INamed, IConfigurable, IInstrumentable, IExternallyParameterized

Constructors

StripeSystem(String, IConfigSectionNode)

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

StripeSystem(String, IConfigSectionNode, Object)

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

Fields

BASE_URI

Declaration
public const string BASE_URI = "https://api.stripe.com/v1"
Field Value
Type Description
System.String

Properties

ComponentCommonName

Declaration
public override string ComponentCommonName { get; }
Property Value
Type Description
System.String
Overrides
ApplicationComponent.ComponentCommonName

Methods

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

Captures the payment of this, uncaptured, charge. This is the second half og the two-step payment flow, where first you created a charge with the capture option set to false. Uncaptured payment expires exactly seven days after it is created. If a payment is not captured by that pooint of time, it will be marked as refunded and will no longer be capturable. If set the amount of capture must be less than or equal to the original amount.

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)

Charges funds from credit card to current stripe account. Parameter "to" is unused in stripe provider.

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)

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

If reason/description parameter set, possible values are duplicate, fraudulent, and requested_by_customer Developers, don't call this method directly. Call Transaction.Refund instead.

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)

Transfers funds from current Stripe account to user account supplied in "to" parameter ("from" parameter is not used in Stripe implementation

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 charge, string description = null, object extraData = null)
Parameters
Type Name Description
PaySession session
Transaction charge
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

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