import { InputField } from '@components/common/form/InputField.js'; import { RadioGroupField } from '@components/common/form/RadioGroupField.js'; import { ToggleField } from '@components/common/form/ToggleField.js'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@components/common/ui/Card.js'; import React from 'react'; interface StripePaymentProps { setting: { stripePaymentStatus: true | false | 0 | 1; stripeDisplayName: string; stripePublishableKey: string; stripeSecretKey: string; stripeEndpointSecret: string; stripePaymentMode: string; }; } export default function StripePayment({ setting: { stripePaymentStatus, stripeDisplayName, stripePublishableKey, stripeSecretKey, stripeEndpointSecret, stripePaymentMode } }: StripePaymentProps) { return ( Stripe Payment Configure your Stripe payment gateway settings

Enable?

Dislay Name

Publishable Key

Secret Key

Webhook Secret Key

Payment mode

); } export const layout = { areaId: 'paymentSetting', sortOrder: 10 }; export const query = ` query Query { setting { stripeDisplayName stripePaymentStatus stripePublishableKey stripeSecretKey stripeEndpointSecret stripePaymentMode } } `;