@plasma-platform/payments
v2.2.0
Published
Helpers for payment
Downloads
39
Readme
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:
Parameters
locale
string? create stripe button by current locale (default: 'en')stripePublicKey
string stripe public keycurrencyInfo
object current currency infoisAuthorized
boolean checking for user authorizedtotalPrice
number cart total pricestripeCountry
string? stripe country code (default: 'US')isChromeBrowser
string? is google chrome browser checker (default: false)createPayment
function create payment method to tm payment clients apicreatePaymentParams
object default params to create payment methodconfirmCardPayment
function confirm card payment method to stripe apifailCallback
function? method to stripe fail paymentsuccessCallback
function? method to stripe success paymentgetLoadingStatus
function? method to loadingcanMakePaymentCallback
function? caused after canMakePayment checkingrenderCustomButton
function? render custom buttonpushPaymentInfoToAnalytics
function? track info to analytics
Examples
<StripePay {...params} />
Returns string Component HTML