Full documentation
install:
npm i @plasma-platform/payments -S
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 />
-
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
<StripePay {...params} />
Returns string Component HTML