Home Reference Source
import StripeComponent from 'formiojs/src/contrib/stripe/stripe/Stripe.js'
public class | source

StripeComponent

Extends:

src/components/_classes/component/Component.js~Component → StripeComponent

This is the StripeComponent class.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

The last result returned by Stripe.

public

The state of the payment.

public

stripe: *

public
public
public
public

Promise when Stripe is ready.

public
public

Method Summary

Public Methods
public

authorize(): *

Call Stripe API to get token

public

Set CSS classes and save token when authorization successed

public

authorizeError(resultError: Object)

Set CSS classes and display error when error occurs during authorization

public

Set CSS classes for pending authorization

public
public

build()

public
public

Handle event dispatched by Stripe library

Public Constructors

public constructor() source

Public Members

public lastResult: Object source

The last result returned by Stripe.

public paymentDone: Boolean source

The state of the payment.

public stripe: * source

public stripeCard: * source

public stripeElementCard: * source

public stripeElementPayButton: * source

public stripeReady: Promise source

Promise when Stripe is ready.

public stripeSeparator: * source

public stripeSuccess: * source

Public Methods

public authorize(): * source

Call Stripe API to get token

Return:

*

public authorizeDone(result: Object) source

Set CSS classes and save token when authorization successed

Params:

NameTypeAttributeDescription
result Object

The result returned by Stripe API.

public authorizeError(resultError: Object) source

Set CSS classes and display error when error occurs during authorization

Params:

NameTypeAttributeDescription
resultError Object

The result error returned by Stripe API.

public authorizePending() source

Set CSS classes for pending authorization

public beforeSubmit(): * source

Return:

*

public build() source

public elementInfo(): * source

Return:

*

public onElementCardChange(result: Object) source

Handle event dispatched by Stripe library

Params:

NameTypeAttributeDescription
result Object

The result returned by Stripe.