@plasma-platform/payments

2.2.0 • Public • Published

version nextVersion downloads license dependency


Full documentation install: npm i @plasma-platform/payments -S

Short documentation

Table of Contents

StripePay

Stripe quick payment button by google & apple pays. Must be a stripe script insert in the index.html file: <script id="stripeApi" src="https://js.stripe.com/v3/" async />

Parameters

  • locale string? create stripe button by current locale (default: 'en')
  • stripePublicKey string stripe public key
  • currencyInfo object current currency info
  • isAuthorized boolean checking for user authorized
  • totalPrice number cart total price
  • stripeCountry string? stripe country code (default: 'US')
  • isChromeBrowser string? is google chrome browser checker (default: false)
  • createPayment function create payment method to tm payment clients api
  • createPaymentParams object default params to create payment method
  • confirmCardPayment function confirm card payment method to stripe api
  • failCallback function? method to stripe fail payment
  • successCallback function? method to stripe success payment
  • getLoadingStatus function? method to loading
  • canMakePaymentCallback function? caused after canMakePayment checking
  • renderCustomButton function? render custom button
  • pushPaymentInfoToAnalytics function? track info to analytics

Examples

<StripePay {...params} />

Returns string Component HTML

Readme

Keywords

Package Sidebar

Install

npm i @plasma-platform/payments

Weekly Downloads

14

Version

2.2.0

License

ISC

Unpacked Size

87.4 kB

Total Files

5

Last publish

Collaborators

  • alienmonster
  • ch-tm
  • viram