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
    
    
    
    
    
    
    StripeSystem
   
  
    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 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
  
  
  
  
  StripeSystem(String, IConfigSectionNode, Object)
  
  
  Declaration
  
    public StripeSystem(string name, IConfigSectionNode node, object director)
   
  Parameters
  
  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
  
  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
  
  
  
  
  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
  
  Overrides
  
  
  
  
  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
  
  
  
  
  DoStartSession(ConnectionParameters, IPaySessionContext)
  
  
  Declaration
  
    protected override PaySession DoStartSession(ConnectionParameters cParams, IPaySessionContext context = null)
   
  Parameters
  
  Returns
  
  Overrides
  
  
  
  
  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
  
  Returns
  
  Overrides
  
  
  
  
  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
  
  
  
  
  MakeDefaultSessionConnectParams(IConfigSectionNode)
  
  
  Declaration
  
    protected override ConnectionParameters MakeDefaultSessionConnectParams(IConfigSectionNode paramsSection)
   
  Parameters
  
  Returns
  
  Overrides
  
  Implements
  
  
      System.IDisposable
  
  
  
  
  
  
  
  
  
  
  Extension Methods