feat: payment gateway settings

This commit is contained in:
Jannat Patel
2024-09-25 10:50:53 +05:30
parent e0f569c382
commit 35a7cce283
4 changed files with 38 additions and 7 deletions

View File

@@ -113,6 +113,12 @@ const tabsStructure = computed(() => {
description:
'Configure the payment gateway and other payment related settings',
fields: [
{
label: 'Payment Gateway',
name: 'payment_gateway',
type: 'Link',
doctype: 'Payment Gateway',
},
{
label: 'Razorpay Key',
name: 'razorpay_key',
@@ -254,6 +260,24 @@ const tabs = computed(() => {
})
})
const paymentGateways = computed(() => {
const gateways = [
'Razorpay',
'Stripe',
'Mpesa',
'Patym',
'Paypal',
'Braintree',
'GoCardless',
]
return gateways.map((gateway) => {
return {
label: gateway,
value: gateway,
}
})
})
watch(show, async () => {
if (show.value) {
const currentTab = await tabs.value