2.2.2 • Published 6 months ago
@plasma-platform/payments v2.2.2
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
localestring? create stripe button by current locale (default: 'en')stripePublicKeystring stripe public keycurrencyInfoobject current currency infoisAuthorizedboolean checking for user authorizedtotalPricenumber cart total pricestripeCountrystring? stripe country code (default: 'US')isChromeBrowserstring? is google chrome browser checker (default: false)createPaymentfunction create payment method to tm payment clients apicreatePaymentParamsobject default params to create payment methodconfirmCardPaymentfunction confirm card payment method to stripe apifailCallbackfunction? method to stripe fail paymentsuccessCallbackfunction? method to stripe success paymentgetLoadingStatusfunction? method to loadingcanMakePaymentCallbackfunction? caused after canMakePayment checkingrenderCustomButtonfunction? render custom buttonpushPaymentInfoToAnalyticsfunction? track info to analytics
Examples
<StripePay {...params} />Returns string Component HTML
2.2.1
6 months ago
2.2.2
6 months ago
2.2.0
2 years ago
2.1.0
2 years ago
1.0.2
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
2.0.0
2 years ago
1.0.1
3 years ago
1.0.0
5 years ago
0.3.0
6 years ago
0.2.0
6 years ago
0.1.0
6 years ago
0.0.6-next.0
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.2-next.7
6 years ago
0.0.2-next.6
6 years ago
0.0.2-next.5
6 years ago
0.0.2-next.4
6 years ago
0.0.2-next.3
6 years ago
0.0.2-next.2
6 years ago
0.0.2-next.1
6 years ago
0.0.2-next.0
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1-next.2
6 years ago
0.0.1-next.3
6 years ago
0.0.1-next.1
6 years ago
0.0.1
6 years ago