Interface StripeStatic

Index

Methods

Methods

public cardType(cardNumber: string): string

Parameters

  • cardNumber: string

Returns

string

public createToken(data: StripeTokenData, responseHandler: (status: number, response: StripeTokenResponse) => void): any

Parameters

  • data: StripeTokenData
  • responseHandler: (status: number, response: StripeTokenResponse) => void

Returns

any

public getToken(token: string, responseHandler: (status: number, response: StripeTokenResponse) => void): any

Parameters

  • token: string
  • responseHandler: (status: number, response: StripeTokenResponse) => void

Returns

any

public setPublishableKey(key: string): any

Parameters

  • key: string

Returns

any

public validateCVC(cardCVC: string): boolean

Parameters

  • cardCVC: string

Returns

boolean

public validateCardNumber(cardNumber: string): boolean

Parameters

  • cardNumber: string

Returns

boolean

public validateExpiry(month: string, year: string): boolean

Parameters

  • month: string
  • year: string

Returns

boolean