Payment setting frontend part 2 - payment setup front/backend

This commit is contained in:
Čarodej
2022-01-07 12:42:47 +01:00
parent 8b7a80e10d
commit e892e0e94f
20 changed files with 316 additions and 1731 deletions

View File

@@ -82,9 +82,6 @@ const mutations = {
SET_SAAS(state, data) {
state.config.isSaaS = data
},
SET_STRIPE_PUBLIC_KEY(state, data) {
state.config.stripe_public_key = data
},
FILE_INFO_TOGGLE(state, isVisible) {
state.isVisibleSidebar = isVisible
@@ -108,6 +105,18 @@ const mutations = {
STORE_REQUESTED_PLAN(state, plan) {
state.requestedPlan = plan
},
SET_STRIPE_CREDENTIALS(state, data) {
state.config.stripe_public_key = data.key
state.config.isStripe = true
},
SET_PAYSTACK_CREDENTIALS(state, data) {
state.config.paystack_public_key = data.key
state.config.isPaystack = true
},
SET_PAYPAL_CREDENTIALS(state, data) {
state.config.paypal_client_id = data.key
state.config.isPayPal = true
},
}
const getters = {