♻️ refactor(payment): Reconstruct the payment page

This commit is contained in:
web@ppanel 2025-03-11 20:06:12 +07:00
parent fc0da761b5
commit 710947209a
34 changed files with 1826 additions and 2000 deletions

View File

@ -1,256 +0,0 @@
'use client';
import { getAlipayF2FPaymentConfig, updateAlipayF2FPaymentConfig } from '@/services/admin/payment';
import { useQuery } from '@tanstack/react-query';
import { Label } from '@workspace/ui/components/label';
import {
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectTrigger,
SelectValue,
} from '@workspace/ui/components/select';
import { Switch } from '@workspace/ui/components/switch';
import { Table, TableBody, TableCell, TableRow } from '@workspace/ui/components/table';
import { Textarea } from '@workspace/ui/components/textarea';
import { EnhancedInput } from '@workspace/ui/custom-components/enhanced-input';
import { unitConversion } from '@workspace/ui/utils';
import { useTranslations } from 'next-intl';
import { toast } from 'sonner';
export default function AlipayF2F() {
const t = useTranslations('payment');
const { data, refetch } = useQuery({
queryKey: ['getAlipayF2FPaymentConfig'],
queryFn: async () => {
const { data } = await getAlipayF2FPaymentConfig();
return data.data;
},
});
async function updateConfig(key: string, value: unknown) {
if (data?.[key] === value) return;
try {
await updateAlipayF2FPaymentConfig({
...data,
[key]: value,
} as API.UpdateAlipayF2fRequest);
toast.success(t('saveSuccess'));
refetch();
} catch (error) {
/* empty */
}
}
return (
<Table>
<TableBody>
<TableRow>
<TableCell>
<Label>{t('enable')}</Label>
<p className='text-muted-foreground text-xs'>{t('enableDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<Switch
checked={data?.enable}
onCheckedChange={(checked) => {
updateConfig('enable', checked);
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('alipayf2f.sandbox')}</Label>
<p className='text-muted-foreground text-xs'>{t('alipayf2f.sandboxDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<Switch
checked={data?.config.sandbox}
onCheckedChange={(checked) => {
updateConfig('config', {
...data?.config,
sandbox: checked,
});
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('showName')}</Label>
<p className='text-muted-foreground text-xs'>{t('showNameDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.name}
onValueBlur={(value) => updateConfig('name', value)}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('iconUrl')}</Label>
<p className='text-muted-foreground text-xs'>{t('iconUrlDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.icon_url}
onValueBlur={(value) => updateConfig('icon', value)}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('notifyUrl')}</Label>
<p className='text-muted-foreground text-xs'>{t('notifyUrlDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.domain}
onValueBlur={(value) => updateConfig('domain', value)}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('feeMode')}</Label>
<p className='text-muted-foreground text-xs'>{t('feeModeDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<Select
value={String(data?.fee_mode)}
onValueChange={(value) => {
updateConfig('fee_mode', Number(value));
}}
>
<SelectTrigger>
<SelectValue placeholder='请选择' />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectItem value='0'>{t('feeModeItems.0')}</SelectItem>
<SelectItem value='1'>{t('feeModeItems.1')}</SelectItem>
<SelectItem value='2'>{t('feeModeItems.2')}</SelectItem>
<SelectItem value='3'>{t('feeModeItems.3')}</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('feePercent')}</Label>
<p className='text-muted-foreground text-xs'>{t('feePercentDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
type='number'
min={0}
max={100}
maxLength={3}
value={data?.fee_percent}
onValueBlur={(value) => updateConfig('fee_percent', value)}
suffix='%'
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('fixedFee')}</Label>
<p className='text-muted-foreground text-xs'>{t('fixedFeeDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
min={0}
value={data?.fee_amount}
formatInput={(value) => unitConversion('centsToDollars', value)}
formatOutput={(value) => unitConversion('dollarsToCents', value)}
onValueBlur={(value) => updateConfig('fee_amount', value)}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('alipayf2f.appId')}</Label>
<p className='text-muted-foreground text-xs' />
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.config.app_id}
onValueBlur={(value) =>
updateConfig('config', {
...data?.config,
app_id: value,
})
}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('alipayf2f.privateKey')}</Label>
<p className='text-muted-foreground text-xs' />
</TableCell>
<TableCell className='text-right'>
<Textarea
placeholder={t('inputPlaceholder')}
defaultValue={data?.config.private_key}
onBlur={(e) => {
updateConfig('config', {
...data?.config,
private_key: e.target.value,
});
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('alipayf2f.publicKey')}</Label>
<p className='text-muted-foreground text-xs' />
</TableCell>
<TableCell className='text-right'>
<Textarea
placeholder={t('inputPlaceholder')}
defaultValue={data?.config.public_key}
onBlur={(e) => {
updateConfig('config', {
...data?.config,
public_key: e.target.value,
});
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('alipayf2f.invoiceName')}</Label>
<p className='text-muted-foreground text-xs' />
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('alipayf2f.invoiceNameDescription')}
value={data?.config.invoice_name}
onValueBlur={(value) =>
updateConfig('config', {
...data?.config,
invoice_name: value,
})
}
/>
</TableCell>
</TableRow>
</TableBody>
</Table>
);
}

View File

@ -1,221 +0,0 @@
'use client';
import { getEpayPaymentConfig, updateEpayPaymentConfig } from '@/services/admin/payment';
import { useQuery } from '@tanstack/react-query';
import { Label } from '@workspace/ui/components/label';
import {
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectTrigger,
SelectValue,
} from '@workspace/ui/components/select';
import { Switch } from '@workspace/ui/components/switch';
import { Table, TableBody, TableCell, TableRow } from '@workspace/ui/components/table';
import { EnhancedInput } from '@workspace/ui/custom-components/enhanced-input';
import { unitConversion } from '@workspace/ui/utils';
import { useTranslations } from 'next-intl';
import { toast } from 'sonner';
export default function Epay() {
const t = useTranslations('payment');
const { data, refetch } = useQuery({
queryKey: ['getEpayPaymentConfig'],
queryFn: async () => {
const { data } = await getEpayPaymentConfig();
return data.data;
},
});
async function updateConfig(key: string, value: unknown) {
if (data?.[key] === value) return;
try {
await updateEpayPaymentConfig({
...data,
[key]: value,
} as API.UpdateEpayRequest);
toast.success(t('saveSuccess'));
refetch();
} catch (error) {
/* empty */
}
}
return (
<Table>
<TableBody>
<TableRow>
<TableCell>
<Label>{t('enable')}</Label>
<p className='text-muted-foreground text-xs'>{t('enableDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<Switch
checked={data?.enable}
onCheckedChange={(checked) => {
updateConfig('enable', checked);
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('showName')}</Label>
<p className='text-muted-foreground text-xs'>{t('showNameDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.name}
onValueBlur={(value) => updateConfig('name', value)}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('iconUrl')}</Label>
<p className='text-muted-foreground text-xs'>{t('iconUrlDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.icon}
onValueBlur={(value) => updateConfig('icon', value)}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('notifyUrl')}</Label>
<p className='text-muted-foreground text-xs'>{t('notifyUrlDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.domain}
onValueBlur={(value) => updateConfig('domain', value)}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('feeMode')}</Label>
<p className='text-muted-foreground text-xs'>{t('feeModeDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<Select
value={String(data?.fee_mode)}
onValueChange={(value) => {
updateConfig('fee_mode', Number(value));
}}
>
<SelectTrigger>
<SelectValue placeholder='请选择' />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectItem value='0'>{t('feeModeItems.0')}</SelectItem>
<SelectItem value='1'>{t('feeModeItems.1')}</SelectItem>
<SelectItem value='2'>{t('feeModeItems.2')}</SelectItem>
<SelectItem value='3'>{t('feeModeItems.3')}</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('feePercent')}</Label>
<p className='text-muted-foreground text-xs'>{t('feePercentDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
type='number'
min={0}
max={100}
maxLength={3}
value={data?.fee_percent}
onValueBlur={(value) => updateConfig('fee_percent', value)}
suffix='%'
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('fixedFee')}</Label>
<p className='text-muted-foreground text-xs'>{t('fixedFeeDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
type='number'
min={0}
value={data?.fee_amount}
formatInput={(value) => unitConversion('centsToDollars', value)}
formatOutput={(value) => unitConversion('dollarsToCents', value)}
onValueBlur={(value) => updateConfig('fee_amount', value)}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('epay.url')}</Label>
<p className='text-muted-foreground text-xs' />
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.config.url}
onValueBlur={(value) =>
updateConfig('config', {
...data?.config,
url: value,
})
}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('epay.pid')}</Label>
<p className='text-muted-foreground text-xs' />
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.config.pid}
onValueBlur={(value) =>
updateConfig('config', {
...data?.config,
pid: value,
})
}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('epay.key')}</Label>
<p className='text-muted-foreground text-xs' />
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.config.key}
onValueBlur={(value) =>
updateConfig('config', {
...data?.config,
key: value,
})
}
/>
</TableCell>
</TableRow>
</TableBody>
</Table>
);
}

View File

@ -1,34 +1,11 @@
import Billing from '@/components/billing'; import Billing from '@/components/billing';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@workspace/ui/components/tabs'; import PaymentTable from './payment-table';
import AlipayF2F from './alipayf2f';
import Epay from './epay';
import StripeAlipay from './stripe-alipay';
import StripeWeChatPay from './stripe-wechat-pay';
export default async function Page() { export default async function Page() {
return ( return (
<> <>
<Tabs defaultValue='Epay'> <PaymentTable />
<TabsList className='h-full flex-wrap'> <div className='mt-5 flex flex-col gap-3'>
<TabsTrigger value='Epay'>Epay</TabsTrigger>
<TabsTrigger value='Stripe-Alipay'>Stripe(AliPay)</TabsTrigger>
<TabsTrigger value='Strip-WeChatPay'>Stripe(WeChatPay)</TabsTrigger>
<TabsTrigger value='AlipayF2F'>AlipayF2F</TabsTrigger>
</TabsList>
<TabsContent value='Epay'>
<Epay />
</TabsContent>
<TabsContent value='Stripe-Alipay'>
<StripeAlipay />
</TabsContent>
<TabsContent value='Strip-WeChatPay'>
<StripeWeChatPay />
</TabsContent>
<TabsContent value='AlipayF2F'>
<AlipayF2F />
</TabsContent>
</Tabs>
<div className='flex flex-col gap-3'>
<Billing type='payment' /> <Billing type='payment' />
</div> </div>
</> </>

View File

@ -0,0 +1,396 @@
'use client';
import useGlobalStore from '@/config/use-global';
import { getPaymentPlatform } from '@/services/admin/payment';
import { zodResolver } from '@hookform/resolvers/zod';
import { useQuery } from '@tanstack/react-query';
import { Button } from '@workspace/ui/components/button';
import {
Form,
FormControl,
FormField,
FormItem,
FormLabel,
FormMessage,
} from '@workspace/ui/components/form';
import { RadioGroup, RadioGroupItem } from '@workspace/ui/components/radio-group';
import { ScrollArea } from '@workspace/ui/components/scroll-area';
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from '@workspace/ui/components/select';
import {
Sheet,
SheetContent,
SheetFooter,
SheetHeader,
SheetTitle,
SheetTrigger,
} from '@workspace/ui/components/sheet';
import { EnhancedInput } from '@workspace/ui/custom-components/enhanced-input';
import { Icon } from '@workspace/ui/custom-components/icon';
import { unitConversion } from '@workspace/ui/utils';
import { useTranslations } from 'next-intl';
import { useEffect, useState } from 'react';
import { useForm } from 'react-hook-form';
import * as z from 'zod';
interface PaymentFormProps<T> {
trigger: React.ReactNode;
title: string;
loading?: boolean;
initialValues?: T;
onSubmit: (values: T) => Promise<boolean>;
}
export default function PaymentForm<T>({
trigger,
title,
loading,
initialValues,
onSubmit,
}: PaymentFormProps<T>) {
const t = useTranslations('payment');
const { common } = useGlobalStore();
const { currency } = common;
const [open, setOpen] = useState(false);
const { data: platformData } = useQuery({
queryKey: ['getPaymentPlatform'],
queryFn: async () => {
const { data } = await getPaymentPlatform();
return data?.data?.list || [];
},
});
const formSchema = z.object({
name: z.string().min(1, { message: t('nameRequired') }),
platform: z.string().optional(),
icon: z.string().optional(),
domain: z.string().optional(),
config: z.any(),
fee_mode: z.coerce.number().min(0).max(2),
fee_percent: z.coerce.number().optional(),
fee_amount: z.coerce.number().optional(),
});
const form = useForm<z.infer<typeof formSchema>>({
resolver: zodResolver(formSchema),
defaultValues: {
name: '',
platform: '',
icon: '',
domain: '',
config: {},
fee_mode: 0,
fee_percent: 0,
fee_amount: 0,
...(initialValues as any),
},
});
const feeMode = form.watch('fee_mode');
const platformValue = form.watch('platform');
const configValues = form.watch('config');
const currentPlatform = platformData?.find((p) => p.platform === platformValue);
const currentFieldDescriptions = currentPlatform?.platform_field_description || {};
const configFields = Object.keys(currentFieldDescriptions) || [];
const platformUrl = currentPlatform?.platform_url || '';
useEffect(() => {
if (feeMode === 0) {
form.setValue('fee_amount', 0);
form.setValue('fee_percent', 0);
} else if (feeMode === 1) {
form.setValue('fee_amount', 0);
} else if (feeMode === 2) {
form.setValue('fee_percent', 0);
}
}, [feeMode, form]);
const handleClose = () => {
form.reset();
setOpen(false);
};
const handleSubmit = async (values: z.infer<typeof formSchema>) => {
const cleanedValues = { ...values };
if (values.fee_mode === 0) {
cleanedValues.fee_amount = undefined;
cleanedValues.fee_percent = undefined;
} else if (values.fee_mode === 1) {
cleanedValues.fee_amount = undefined;
} else if (values.fee_mode === 2) {
cleanedValues.fee_percent = undefined;
}
const success = await onSubmit(cleanedValues as unknown as T);
if (success) {
handleClose();
}
};
const openPlatformUrl = () => {
if (platformUrl) {
window.open(platformUrl, '_blank');
}
};
return (
<Sheet open={open} onOpenChange={setOpen}>
<SheetTrigger asChild>{trigger}</SheetTrigger>
<SheetContent className='w-[550px] max-w-full md:max-w-screen-md'>
<SheetHeader>
<SheetTitle>{title}</SheetTitle>
</SheetHeader>
<ScrollArea className='-mx-6 h-[calc(100vh-48px-36px-36px-env(safe-area-inset-top))]'>
<Form {...form}>
<form onSubmit={form.handleSubmit(handleSubmit)} className='space-y-6 px-6 pt-4'>
{/* 基本信息分组 */}
<div className='space-y-4'>
<div className='grid grid-cols-1 gap-4 sm:grid-cols-2'>
<FormField
control={form.control}
name='name'
render={({ field }) => (
<FormItem>
<FormLabel>{t('name')}</FormLabel>
<FormControl>
<EnhancedInput
placeholder={t('namePlaceholder')}
value={field.value}
onValueChange={(value) => form.setValue('name', value as string)}
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
<FormField
control={form.control}
name='icon'
render={({ field }) => (
<FormItem>
<FormLabel>{t('icon')}</FormLabel>
<FormControl>
<EnhancedInput
placeholder={t('iconPlaceholder')}
value={field.value}
onValueChange={(value) => form.setValue('icon', value as string)}
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
</div>
<FormField
control={form.control}
name='domain'
render={({ field }) => (
<FormItem>
<FormLabel>{t('domain')}</FormLabel>
<FormControl>
<EnhancedInput
placeholder={t('domainPlaceholder', { example: 'https://example.com' })}
value={field.value}
onValueChange={(value) => form.setValue('domain', value as string)}
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
</div>
<div className='space-y-4'>
<FormField
control={form.control}
name='fee_mode'
render={({ field }) => (
<FormItem>
<FormLabel>{t('handlingFee')}</FormLabel>
<FormControl>
<RadioGroup
onValueChange={(value) => field.onChange(parseInt(value))}
value={field.value.toString()}
className='flex flex-wrap gap-4'
>
<FormItem className='flex items-center space-x-2'>
<FormControl>
<RadioGroupItem value='0' />
</FormControl>
<FormLabel className='!mt-0 cursor-pointer'>{t('noFee')}</FormLabel>
</FormItem>
<FormItem className='flex items-center space-x-2'>
<FormControl>
<RadioGroupItem value='1' />
</FormControl>
<FormLabel className='!mt-0 cursor-pointer'>
{t('percentFee')}
</FormLabel>
</FormItem>
<FormItem className='flex items-center space-x-2'>
<FormControl>
<RadioGroupItem value='2' />
</FormControl>
<FormLabel className='!mt-0 cursor-pointer'>{t('fixedFee')}</FormLabel>
</FormItem>
</RadioGroup>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
{feeMode === 1 && (
<div className='grid grid-cols-1 sm:w-1/2'>
<FormField
control={form.control}
name='fee_percent'
render={({ field }) => (
<FormItem>
<FormLabel>{t('feePercent')}</FormLabel>
<FormControl>
<EnhancedInput
type='number'
step='0.01'
suffix='%'
value={field.value}
onValueChange={field.onChange}
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
</div>
)}
{feeMode === 2 && (
<div className='grid grid-cols-1 sm:w-1/2'>
<FormField
control={form.control}
name='fee_amount'
render={({ field }) => (
<FormItem>
<FormLabel>{t('feeAmount')}</FormLabel>
<FormControl>
<EnhancedInput
type='number'
step='0.01'
prefix={currency.currency_symbol}
suffix={currency.currency_unit}
value={unitConversion('centsToDollars', field.value)}
onValueChange={(value) =>
field.onChange(unitConversion('dollarsToCents', value))
}
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
</div>
)}
</div>
<div className='space-y-4'>
{(!platformValue || platformData?.find((p) => p.platform === platformValue)) && (
<FormField
control={form.control}
name='platform'
render={({ field }) => (
<FormItem>
<FormLabel>{t('platform')}</FormLabel>
<Select
onValueChange={(value) => {
form.setValue('platform', value as string);
form.setValue('config', {});
}}
defaultValue={field.value}
value={field.value}
>
<FormControl>
<SelectTrigger>
<SelectValue placeholder={t('selectPlatform')} />
</SelectTrigger>
</FormControl>
<SelectContent>
{platformData?.map((platform) => (
<SelectItem key={platform.platform} value={platform.platform}>
{platform.platform}
</SelectItem>
))}
</SelectContent>
</Select>
{platformUrl ? (
<div className='mt-1 flex justify-end'>
<Button
variant='ghost'
size='sm'
className='h-6 px-2 text-xs'
onClick={openPlatformUrl}
>
<Icon icon='tabler:external-link' className='mr-1 h-3 w-3' />
{t('applyForPayment')}
</Button>
</div>
) : (
<div className='mt-1 h-6'></div>
)}
<FormMessage />
</FormItem>
)}
/>
)}
{configFields.length > 0 && (
<div className='mt-4 space-y-4'>
{configFields.map((fieldKey) => (
<FormItem key={fieldKey}>
<FormLabel>{currentFieldDescriptions[fieldKey]}</FormLabel>
<FormControl>
<EnhancedInput
placeholder={t('configPlaceholder', {
field: currentFieldDescriptions[fieldKey],
})}
value={
configValues && configValues[fieldKey] !== undefined
? configValues[fieldKey]
: ''
}
onValueChange={(value) => {
const newConfig = { ...configValues };
newConfig[fieldKey] = value;
form.setValue('config', newConfig);
}}
/>
</FormControl>
</FormItem>
))}
</div>
)}
</div>
</form>
</Form>
</ScrollArea>
<SheetFooter className='flex-row justify-end gap-2 pt-3'>
<Button variant='outline' disabled={loading} onClick={handleClose}>
{t('cancel')}
</Button>
<Button disabled={loading} onClick={form.handleSubmit(handleSubmit)}>
{loading && <Icon icon='mdi:loading' className='mr-2 animate-spin' />}
{t('submit')}
</Button>
</SheetFooter>
</SheetContent>
</Sheet>
);
}

View File

@ -0,0 +1,226 @@
'use client';
import { Display } from '@/components/display';
import { ProTable, ProTableActions } from '@/components/pro-table';
import {
createPaymentMethod,
deletePaymentMethod,
getPaymentMethodList,
updatePaymentMethod,
} from '@/services/admin/payment';
import { Avatar, AvatarFallback, AvatarImage } from '@workspace/ui/components/avatar';
import { Badge } from '@workspace/ui/components/badge';
import { Button } from '@workspace/ui/components/button';
import { Switch } from '@workspace/ui/components/switch';
import { ConfirmButton } from '@workspace/ui/custom-components/confirm-button';
import { useTranslations } from 'next-intl';
import { useRef, useState } from 'react';
import { toast } from 'sonner';
import PaymentForm from './payment-form';
export default function PaymentTable() {
const t = useTranslations('payment');
const [loading, setLoading] = useState(false);
const ref = useRef<ProTableActions>(null);
return (
<ProTable<API.PaymentConfig, { search: string }>
action={ref}
header={{
title: t('paymentManagement'),
toolbar: (
<PaymentForm<API.CreatePaymentMethodRequest>
trigger={<Button>{t('create')}</Button>}
title={t('createPayment')}
loading={loading}
onSubmit={async (values) => {
setLoading(true);
try {
await createPaymentMethod({
...values,
enable: false,
});
toast.success(t('createSuccess'));
ref.current?.refresh();
setLoading(false);
return true;
} catch (error) {
setLoading(false);
return false;
}
}}
/>
),
}}
columns={[
{
accessorKey: 'enable',
header: t('enable'),
cell: ({ row }) => {
return (
<Switch
checked={Boolean(row.getValue('enable'))}
onCheckedChange={async (checked) => {
await updatePaymentMethod({
...row.original,
enable: checked,
});
ref.current?.refresh();
}}
/>
);
},
},
{
accessorKey: 'icon',
header: t('icon'),
cell: ({ row }) => {
const icon = row.getValue('icon') as string;
return (
<Avatar className='h-8 w-8'>
{icon ? <AvatarImage src={icon} alt={row.getValue('name')} /> : null}
<AvatarFallback>
{(row.getValue('name') as string)?.charAt(0) || '?'}
</AvatarFallback>
</Avatar>
);
},
},
{
accessorKey: 'name',
header: t('name'),
},
{
accessorKey: 'platform',
header: t('platform'),
cell: ({ row }) => <Badge>{t(row.getValue('platform'))}</Badge>,
},
{
accessorKey: 'domain',
header: t('domain'),
cell: ({ row }) => {
const domain = row.getValue('domain') as string;
return domain ? <Badge variant='outline'>{domain}</Badge> : '--';
},
},
{
accessorKey: 'fee',
header: t('handlingFee'),
cell: ({ row }) => {
const feeMode = row.original.fee_mode;
if (feeMode === 1) {
return <Badge>{row.original.fee_percent}%</Badge>;
} else if (feeMode === 2) {
return (
<Badge>
<Display value={row.original.fee_amount} type='currency' />
</Badge>
);
}
return '--';
},
},
]}
params={[
{
key: 'search',
placeholder: t('searchPlaceholder'),
},
]}
request={async (pagination, filter) => {
const { data } = await getPaymentMethodList({
...pagination,
...filter,
});
return {
list: data?.data?.list || [],
total: data?.data?.total || 0,
};
}}
actions={{
render: (row) => [
<PaymentForm<API.UpdatePaymentMethodRequest>
key='edit'
trigger={<Button>{t('edit')}</Button>}
title={t('editPayment')}
loading={loading}
initialValues={row}
onSubmit={async (values) => {
setLoading(true);
try {
await updatePaymentMethod({
...values,
id: row.id,
});
toast.success(t('updateSuccess'));
ref.current?.refresh();
setLoading(false);
return true;
} catch (error) {
setLoading(false);
return false;
}
}}
/>,
<ConfirmButton
key='delete'
trigger={<Button variant='destructive'>{t('delete')}</Button>}
title={t('confirmDelete')}
description={t('deleteWarning')}
onConfirm={async () => {
await deletePaymentMethod({
id: row.id,
});
toast.success(t('deleteSuccess'));
ref.current?.refresh();
}}
cancelText={t('cancel')}
confirmText={t('confirm')}
/>,
<Button
key='copy'
variant='outline'
onClick={async () => {
setLoading(true);
try {
const { id, ...params } = row;
await createPaymentMethod({
...params,
enable: false,
});
toast.success(t('copySuccess'));
ref.current?.refresh();
setLoading(false);
return true;
} catch (error) {
setLoading(false);
return false;
}
}}
>
{t('copy')}
</Button>,
],
batchRender(rows) {
return [
<ConfirmButton
key='delete'
trigger={<Button variant='destructive'>{t('batchDelete')}</Button>}
title={t('confirmDelete')}
description={t('deleteWarning')}
onConfirm={async () => {
for (const row of rows) {
await deletePaymentMethod({ id: row.id });
}
toast.success(t('deleteSuccess'));
ref.current?.refresh();
}}
cancelText={t('cancel')}
confirmText={t('confirm')}
/>,
];
},
}}
/>
);
}

View File

@ -1,232 +0,0 @@
'use client';
import {
getStripeAlipayPaymentConfig,
updateStripeAlipayPaymentConfig,
} from '@/services/admin/payment';
import { useQuery } from '@tanstack/react-query';
import { Label } from '@workspace/ui/components/label';
import {
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectTrigger,
SelectValue,
} from '@workspace/ui/components/select';
import { Switch } from '@workspace/ui/components/switch';
import { Table, TableBody, TableCell, TableRow } from '@workspace/ui/components/table';
import { EnhancedInput } from '@workspace/ui/custom-components/enhanced-input';
import { unitConversion } from '@workspace/ui/utils';
import { useTranslations } from 'next-intl';
import { toast } from 'sonner';
export default function Stripe() {
const t = useTranslations('payment');
const { data, refetch } = useQuery({
queryKey: ['getStripeAlipayPaymentConfig'],
queryFn: async () => {
const { data } = await getStripeAlipayPaymentConfig();
return data.data;
},
});
async function updateConfig(key: string, value: unknown) {
if (data?.[key] === value) return;
try {
await updateStripeAlipayPaymentConfig({
...data,
mark: 'stripe_alipay',
[key]: value,
} as any);
toast.success(t('saveSuccess'));
refetch();
} catch (error) {
/* empty */
}
}
return (
<Table>
<TableBody>
<TableRow>
<TableCell>
<Label>{t('aliPay')}</Label>
<p className='text-muted-foreground text-xs'>{t('enableDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<Switch
checked={data?.enable}
onCheckedChange={async (checked) => {
updateConfig('enable', checked);
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('showName')}</Label>
<p className='text-muted-foreground text-xs'>{t('showNameDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.name}
onValueBlur={(value) => {
updateConfig('name', value);
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('iconUrl')}</Label>
<p className='text-muted-foreground text-xs'>{t('iconUrlDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.icon}
onValueBlur={(value) => {
updateConfig('icon', value);
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('notifyUrl')}</Label>
<p className='text-muted-foreground text-xs'>{t('notifyUrlDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.domain}
onValueBlur={(value) => {
updateConfig('domain', value);
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('feeMode')}</Label>
<p className='text-muted-foreground text-xs'>{t('feeModeDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<Select
value={String(data?.fee_mode)}
onValueChange={(value) => {
updateConfig('fee_mode', Number(value));
}}
>
<SelectTrigger>
<SelectValue placeholder='请选择' />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectItem value='0'>{t('feeModeItems.0')}</SelectItem>
<SelectItem value='1'>{t('feeModeItems.1')}</SelectItem>
<SelectItem value='2'>{t('feeModeItems.2')}</SelectItem>
<SelectItem value='3'>{t('feeModeItems.3')}</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('feePercent')}</Label>
<p className='text-muted-foreground text-xs'>{t('feePercentDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
type='number'
min={0}
max={100}
value={data?.fee_percent}
onValueBlur={(value) => {
updateConfig('fee_percent', value);
}}
suffix='%'
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('fixedFee')}</Label>
<p className='text-muted-foreground text-xs'>{t('fixedFeeDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
type='number'
min={0}
value={data?.fee_amount}
formatInput={(value) => unitConversion('centsToDollars', value)}
formatOutput={(value) => unitConversion('dollarsToCents', value)}
onValueBlur={(value) => updateConfig('fee_amount', value)}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('stripe.publicKey')}</Label>
<p className='text-muted-foreground text-xs' />
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.config.public_key}
onValueBlur={(value) => {
updateConfig('config', {
...data?.config,
public_key: value,
});
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('stripe.secretKey')}</Label>
<p className='text-muted-foreground text-xs' />
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.config.secret_key}
onValueBlur={(value) => {
updateConfig('config', {
...data?.config,
secret_key: value,
});
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('stripe.webhookSecret')}</Label>
<p className='text-muted-foreground text-xs' />
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.config.webhook_secret}
onValueBlur={(value) => {
updateConfig('config', {
...data?.config,
webhook_secret: value,
});
}}
/>
</TableCell>
</TableRow>
</TableBody>
</Table>
);
}

View File

@ -1,232 +0,0 @@
'use client';
import {
getStripeWeChatPayPaymentConfig,
updateStripeWeChatPayPaymentConfig,
} from '@/services/admin/payment';
import { useQuery } from '@tanstack/react-query';
import { Label } from '@workspace/ui/components/label';
import {
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectTrigger,
SelectValue,
} from '@workspace/ui/components/select';
import { Switch } from '@workspace/ui/components/switch';
import { Table, TableBody, TableCell, TableRow } from '@workspace/ui/components/table';
import { EnhancedInput } from '@workspace/ui/custom-components/enhanced-input';
import { unitConversion } from '@workspace/ui/utils';
import { useTranslations } from 'next-intl';
import { toast } from 'sonner';
export default function StripeWeChatPay() {
const t = useTranslations('payment');
const { data, refetch } = useQuery({
queryKey: ['getStripeWeChatPayPaymentConfig'],
queryFn: async () => {
const { data } = await getStripeWeChatPayPaymentConfig();
return data.data;
},
});
async function updateConfig(key: string, value: unknown) {
if (data?.[key] === value) return;
try {
await updateStripeWeChatPayPaymentConfig({
...data,
mark: 'stripe_wechat_pay',
[key]: value,
} as any);
toast.success(t('saveSuccess'));
refetch();
} catch (error) {
/* empty */
}
}
return (
<Table>
<TableBody>
<TableRow>
<TableCell>
<Label>{t('wechatPay')}</Label>
<p className='text-muted-foreground text-xs'>{t('enableDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<Switch
checked={data?.enable}
onCheckedChange={async (checked) => {
updateConfig('enable', checked);
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('showName')}</Label>
<p className='text-muted-foreground text-xs'>{t('showNameDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.name}
onValueBlur={(value) => {
updateConfig('name', value);
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('iconUrl')}</Label>
<p className='text-muted-foreground text-xs'>{t('iconUrlDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.icon}
onValueBlur={(value) => {
updateConfig('icon', value);
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('notifyUrl')}</Label>
<p className='text-muted-foreground text-xs'>{t('notifyUrlDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.domain}
onValueBlur={(value) => {
updateConfig('domain', value);
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('feeMode')}</Label>
<p className='text-muted-foreground text-xs'>{t('feeModeDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<Select
value={String(data?.fee_mode)}
onValueChange={(value) => {
updateConfig('fee_mode', Number(value));
}}
>
<SelectTrigger>
<SelectValue placeholder='请选择' />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectItem value='0'>{t('feeModeItems.0')}</SelectItem>
<SelectItem value='1'>{t('feeModeItems.1')}</SelectItem>
<SelectItem value='2'>{t('feeModeItems.2')}</SelectItem>
<SelectItem value='3'>{t('feeModeItems.3')}</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('feePercent')}</Label>
<p className='text-muted-foreground text-xs'>{t('feePercentDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
type='number'
min={0}
max={100}
value={data?.fee_percent}
onValueBlur={(value) => {
updateConfig('fee_percent', value);
}}
suffix='%'
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('fixedFee')}</Label>
<p className='text-muted-foreground text-xs'>{t('fixedFeeDescription')}</p>
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
type='number'
min={0}
value={data?.fee_amount}
formatInput={(value) => unitConversion('centsToDollars', value)}
formatOutput={(value) => unitConversion('dollarsToCents', value)}
onValueBlur={(value) => updateConfig('fee_amount', value)}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('stripe.publicKey')}</Label>
<p className='text-muted-foreground text-xs' />
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.config.public_key}
onValueBlur={(value) => {
updateConfig('config', {
...data?.config,
public_key: value,
});
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('stripe.secretKey')}</Label>
<p className='text-muted-foreground text-xs' />
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.config.secret_key}
onValueBlur={(value) => {
updateConfig('config', {
...data?.config,
secret_key: value,
});
}}
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Label>{t('stripe.webhookSecret')}</Label>
<p className='text-muted-foreground text-xs' />
</TableCell>
<TableCell className='text-right'>
<EnhancedInput
placeholder={t('inputPlaceholder')}
value={data?.config.webhook_secret}
onValueBlur={(value) => {
updateConfig('config', {
...data?.config,
webhook_secret: value,
});
}}
/>
</TableCell>
</TableRow>
</TableBody>
</Table>
);
}

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "Platba Alipay", "AlipayF2F": "Alipay Osobně",
"alipayf2f": { "EPay": "EPay",
"appId": "ID aplikace Alipay", "Stripe": "Stripe",
"invoiceName": "Název vlastního produktu", "applyForPayment": "Žádat o platbu",
"invoiceNameDescription": "Bude zobrazeno na faktuře Alipay", "balance": "Zůstatek",
"privateKey": "Soukromý klíč Alipay", "batchDelete": "Hromadné smazání",
"publicKey": "Veřejný klíč Alipay", "cancel": "Zrušit",
"sandbox": "Režim sandbox", "config": "Nastavení",
"sandboxDescription": "Povolte režim sandbox pro testování plateb" "configInfo": "Informace o nastavení",
}, "configPlaceholder": "Vyplňte prosím poskytnutou konfiguraci {field}",
"confirm": "Potvrdit",
"confirmDelete": "Potvrdit smazání",
"copy": "Kopírovat",
"copySuccess": "Úspěšně zkopírováno",
"create": "Přidat platební metodu",
"createPayment": "Přidat platební metodu",
"createSuccess": "Úspěšně vytvořeno",
"delete": "Smazat",
"deleteSuccess": "Úspěšně smazáno",
"deleteWarning": "Opravdu chcete smazat tuto platební metodu? Tuto akci nelze vrátit zpět.",
"domain": "Doména",
"domainPlaceholder": "volitelné, např. {example}",
"edit": "Upravit",
"editPayment": "Upravit platební metodu",
"enable": "Povolit", "enable": "Povolit",
"enableDescription": "Povolit tento způsob platby", "feeAmount": "Pevná částka",
"epay": {
"key": "KLÍČ",
"pid": "PID",
"url": "URL"
},
"feeMode": "Způsob účtování", "feeMode": "Způsob účtování",
"feeModeDescription": "Způsob účtování dodatečných poplatků",
"feeModeItems": ["Bez poplatku", "Procento", "Pevná částka", "Obojí výše uvedené"],
"feePercent": "Procentuální poplatek (volitelně)", "feePercent": "Procentuální poplatek (volitelně)",
"feePercentDescription": "Přidání poplatku k částce objednávky",
"fixedFee": "Pevný poplatek (volitelný)", "fixedFee": "Pevný poplatek (volitelný)",
"fixedFeeDescription": "Přidání pevného poplatku k částce objednávky", "handlingFee": "Poplatek za zpracování",
"iconUrl": "URL ikony (volitelné)", "icon": "Ikona",
"iconUrlDescription": "Používá se pro zobrazení na frontendu", "iconPlaceholder": "Zadejte URL ikony",
"inputPlaceholder": "Prosím zadejte", "mark": "Identifikátor",
"key": "KLÍČ", "markPlaceholder": "Zadejte identifikátor platební metody",
"notifyUrl": "Vlastní oznámení URL (volitelné)", "name": "Název",
"notifyUrlDescription": "Oznámení brány budou odeslána na tuto doménu", "namePlaceholder": "Zadejte název platební metody",
"payForRecommendations": "Zaplatit za doporučení", "nameRequired": "Název je povinný",
"pid": "PID", "noFee": "Žádný poplatek",
"saveSuccess": "Uložení bylo úspěšné", "paymentManagement": "Správa plateb",
"showName": "Zobrazit název", "percentFee": "Procento",
"showNameDescription": "Používá se pro zobrazení na frontendu", "platform": "Platforma",
"stripe": { "searchPlaceholder": "Zadejte hledané výrazy",
"publicKey": "VEŘEJNÝ KLÍČ", "selectPlatform": "Vyberte platformu",
"secretKey": "TAJNÝ KLÍČ", "selectType": "Vyberte typ platby",
"webhookSecret": "PODPIS WEBHOOK KLÍČE" "submit": "Odeslat",
}, "type": "Typ",
"url": "URL", "updateSuccess": "Úspěšně aktualizováno"
"wechatPay": "WeChat Pay"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "Alipay-Zahlung", "AlipayF2F": "Alipay Gesicht zu Gesicht",
"alipayf2f": { "EPay": "EPay",
"appId": "Alipay Anwendungs-ID", "Stripe": "Stripe",
"invoiceName": "Benutzerdefinierter Produktname", "applyForPayment": "Zahlung beantragen",
"invoiceNameDescription": "Wird in der Alipay-Rechnung angezeigt", "balance": "Guthaben",
"privateKey": "Alipay Privatschlüssel", "batchDelete": "Massenlöschung",
"publicKey": "Alipay Öffentlicher Schlüssel", "cancel": "Abbrechen",
"sandbox": "Sandbox-Modus", "config": "Konfiguration",
"sandboxDescription": "Aktivieren Sie den Sandbox-Modus, um Zahlungen zu testen" "configInfo": "Konfigurationsinformationen",
}, "configPlaceholder": "Bitte füllen Sie die bereitgestellte {field} Konfiguration aus",
"confirm": "Bestätigen",
"confirmDelete": "Löschen bestätigen",
"copy": "Kopieren",
"copySuccess": "Erfolgreich kopiert",
"create": "Zahlungsmethode hinzufügen",
"createPayment": "Zahlungsmethode hinzufügen",
"createSuccess": "Erfolgreich erstellt",
"delete": "Löschen",
"deleteSuccess": "Erfolgreich gelöscht",
"deleteWarning": "Sind Sie sicher, dass Sie diese Zahlungsmethode löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.",
"domain": "Domain",
"domainPlaceholder": "optional, z.B. {example}",
"edit": "Bearbeiten",
"editPayment": "Zahlungsmethode bearbeiten",
"enable": "Aktivieren", "enable": "Aktivieren",
"enableDescription": "Diese Zahlungsmethode aktivieren", "feeAmount": "Fester Betrag",
"epay": {
"key": "SCHLÜSSEL",
"pid": "PID",
"url": "URL"
},
"feeMode": "Gebührenmodus", "feeMode": "Gebührenmodus",
"feeModeDescription": "Gebührenmodus für zusätzliche Gebühren",
"feeModeItems": ["Keine Gebühr", "Prozentsatz", "Fester Betrag", "Beides"],
"feePercent": "Prozentgebühr (optional)", "feePercent": "Prozentgebühr (optional)",
"feePercentDescription": "Gebühren werden zusätzlich zum Bestellbetrag hinzugefügt",
"fixedFee": "Feste Gebühr (optional)", "fixedFee": "Feste Gebühr (optional)",
"fixedFeeDescription": "Feste Gebühr zusätzlich zum Bestellbetrag hinzufügen", "handlingFee": "Bearbeitungsgebühr",
"iconUrl": "Symbol-URL (optional)", "icon": "Symbol",
"iconUrlDescription": "Zur Anzeige im Frontend verwendet", "iconPlaceholder": "Geben Sie die URL des Symbols ein",
"inputPlaceholder": "Bitte eingeben", "mark": "Kennung",
"key": "SCHLÜSSEL", "markPlaceholder": "Geben Sie die Kennung der Zahlungsmethode ein",
"notifyUrl": "Benutzerdefinierte Benachrichtigungs-URL (optional)", "name": "Name",
"notifyUrlDescription": "Gateway-Benachrichtigungen werden an diese Domain gesendet", "namePlaceholder": "Geben Sie den Namen der Zahlungsmethode ein",
"payForRecommendations": "Für Empfehlungen bezahlen", "nameRequired": "Name ist erforderlich",
"pid": "PID", "noFee": "Keine Gebühr",
"saveSuccess": "Erfolgreich gespeichert", "paymentManagement": "Zahlungsverwaltung",
"showName": "Anzeigename", "percentFee": "Prozentsatz",
"showNameDescription": "Zur Anzeige im Frontend verwendet", "platform": "Plattform",
"stripe": { "searchPlaceholder": "Suchbegriffe eingeben",
"publicKey": "ÖFFENTLICHER SCHLÜSSEL", "selectPlatform": "Plattform auswählen",
"secretKey": "GEHEIMER SCHLÜSSEL", "selectType": "Zahlungsart auswählen",
"webhookSecret": "WEBHOOK-SCHLÜSSEL-SIGNATUR" "submit": "Einreichen",
}, "type": "Typ",
"url": "URL", "updateSuccess": "Erfolgreich aktualisiert"
"wechatPay": "WeChat Pay"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "Alipay payment", "AlipayF2F": "Alipay Face to Face",
"alipayf2f": { "EPay": "EPay",
"appId": "Alipay App ID", "Stripe": "Stripe",
"invoiceName": "Custom Product Name", "applyForPayment": "Apply for Payment",
"invoiceNameDescription": "Will be displayed on Alipay bill", "balance": "Balance",
"privateKey": "Alipay Private Key", "batchDelete": "Batch Delete",
"publicKey": "Alipay Public Key", "cancel": "Cancel",
"sandbox": "Sandbox Mode", "config": "Configuration",
"sandboxDescription": "Enable sandbox mode to test payments" "configInfo": "Configuration Information",
}, "configPlaceholder": "Please fill in the provided {field} configuration",
"confirm": "Confirm",
"confirmDelete": "Confirm Delete",
"copy": "Copy",
"copySuccess": "Copied successfully",
"create": "Add Payment Method",
"createPayment": "Add Payment Method",
"createSuccess": "Created successfully",
"delete": "Delete",
"deleteSuccess": "Deleted successfully",
"deleteWarning": "Are you sure you want to delete this payment method? This action cannot be undone.",
"domain": "Domain",
"domainPlaceholder": "optional, e.g. {example}",
"edit": "Edit",
"editPayment": "Edit Payment Method",
"enable": "Enable", "enable": "Enable",
"enableDescription": "Enable this payment method", "feeAmount": "Fixed Amount",
"epay": {
"key": "KEY",
"pid": "PID",
"url": "URL"
},
"feeMode": "Fee Mode", "feeMode": "Fee Mode",
"feeModeDescription": "Fee charging method for additional fees", "feePercent": "Fee Percentage",
"feeModeItems": ["No Fee", "Percentage", "Fixed Amount", "Both"], "fixedFee": "Fixed Amount",
"feePercent": "Percentage Fee (optional)", "handlingFee": "Handling Fee",
"feePercentDescription": "Add fee on top of order amount", "icon": "Icon",
"fixedFee": "Fixed Fee (optional)", "iconPlaceholder": "Enter icon URL",
"fixedFeeDescription": "Add fixed fee on top of order amount", "mark": "Identifier",
"iconUrl": "Icon URL (optional)", "markPlaceholder": "Enter payment method identifier",
"iconUrlDescription": "Used for frontend display", "name": "Name",
"inputPlaceholder": "Please enter", "namePlaceholder": "Enter payment method name",
"key": "KEY", "nameRequired": "Name is required",
"notifyUrl": "Custom Notification Domain (optional)", "noFee": "No Fee",
"notifyUrlDescription": "Gateway notifications will be sent to this domain", "paymentManagement": "Payment Management",
"payForRecommendations": "Pay for Recommendations", "percentFee": "Percentage",
"pid": "PID", "platform": "Platform",
"saveSuccess": "Save Successful", "searchPlaceholder": "Enter search terms",
"showName": "Display Name", "selectPlatform": "Select Platform",
"showNameDescription": "Used for frontend display", "selectType": "Select payment type",
"stripe": { "submit": "Submit",
"publicKey": "PUBLIC KEY", "type": "Type",
"secretKey": "SECRET KEY", "updateSuccess": "Updated successfully"
"webhookSecret": "WEBHOOK Secret Key"
},
"url": "URL",
"wechatPay": "WeChat Pay"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "Pago con Alipay", "AlipayF2F": "Alipay Cara a Cara",
"alipayf2f": { "EPay": "EPay",
"appId": "ID de la aplicación de Alipay", "Stripe": "Stripe",
"invoiceName": "Nombre personalizado del producto", "applyForPayment": "Solicitar Pago",
"invoiceNameDescription": "Se mostrará en la factura de Alipay", "balance": "Saldo",
"privateKey": "Clave privada de Alipay", "batchDelete": "Eliminar en Lote",
"publicKey": "Clave pública de Alipay", "cancel": "Cancelar",
"sandbox": "Modo sandbox", "config": "Configuración",
"sandboxDescription": "Habilitar el modo sandbox para probar el pago" "configInfo": "Información de Configuración",
}, "configPlaceholder": "Por favor, complete la configuración de {field} proporcionada",
"confirm": "Confirmar",
"confirmDelete": "Confirmar Eliminación",
"copy": "Copiar",
"copySuccess": "Copiado con éxito",
"create": "Agregar Método de Pago",
"createPayment": "Agregar Método de Pago",
"createSuccess": "Creado con éxito",
"delete": "Eliminar",
"deleteSuccess": "Eliminado con éxito",
"deleteWarning": "¿Está seguro de que desea eliminar este método de pago? Esta acción no se puede deshacer.",
"domain": "Dominio",
"domainPlaceholder": "opcional, p. ej. {example}",
"edit": "Editar",
"editPayment": "Editar Método de Pago",
"enable": "Habilitar", "enable": "Habilitar",
"enableDescription": "Habilitar este método de pago", "feeAmount": "Monto Fijo",
"epay": {
"key": "CLAVE",
"pid": "PID",
"url": "URL"
},
"feeMode": "Modo de cobro", "feeMode": "Modo de cobro",
"feeModeDescription": "Modo de cobro de tarifas adicionales",
"feeModeItems": ["Sin tarifa", "Porcentaje", "Cantidad fija", "Ambos anteriores"],
"feePercent": "Porcentaje de tarifa (opcional)", "feePercent": "Porcentaje de tarifa (opcional)",
"feePercentDescription": "Se añade una tarifa sobre el monto del pedido",
"fixedFee": "Tarifa fija (opcional)", "fixedFee": "Tarifa fija (opcional)",
"fixedFeeDescription": "Se añade una tarifa fija sobre el monto del pedido", "handlingFee": "Tarifa de manejo",
"iconUrl": "URL del icono (opcional)", "icon": "Ícono",
"iconUrlDescription": "Usado para mostrar en el frontend", "iconPlaceholder": "Ingrese la URL del ícono",
"inputPlaceholder": "Por favor, introduzca", "mark": "Identificador",
"key": "CLAVE", "markPlaceholder": "Ingrese el identificador del método de pago",
"notifyUrl": "Dominio de notificación personalizado (opcional)", "name": "Nombre",
"notifyUrlDescription": "La notificación del gateway se enviará a este dominio", "namePlaceholder": "Ingrese el nombre del método de pago",
"payForRecommendations": "Pagar por recomendaciones", "nameRequired": "El nombre es obligatorio",
"pid": "PID", "noFee": "Sin Tarifa",
"saveSuccess": "Guardado exitosamente", "paymentManagement": "Gestión de Pagos",
"showName": "Mostrar nombre", "percentFee": "Porcentaje",
"showNameDescription": "Usado para mostrar en el frontend", "platform": "Plataforma",
"stripe": { "searchPlaceholder": "Ingrese términos de búsqueda",
"publicKey": "CLAVE PÚBLICA", "selectPlatform": "Seleccionar Plataforma",
"secretKey": "CLAVE SECRETA", "selectType": "Seleccionar tipo de pago",
"webhookSecret": "FIRMA DE CLAVE WEBHOOK" "submit": "Enviar",
}, "type": "Tipo",
"url": "URL", "updateSuccess": "Actualizado con éxito"
"wechatPay": "Pago con WeChat"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "Pago con Alipay", "AlipayF2F": "Alipay Cara a Cara",
"alipayf2f": { "EPay": "EPay",
"appId": "ID de la aplicación de Alipay", "Stripe": "Stripe",
"invoiceName": "Nombre personalizado del producto", "applyForPayment": "Solicitar Pago",
"invoiceNameDescription": "Se mostrará en la factura de Alipay", "balance": "Saldo",
"privateKey": "Clave privada de Alipay", "batchDelete": "Eliminar en Lote",
"publicKey": "Clave pública de Alipay", "cancel": "Cancelar",
"sandbox": "Modo sandbox", "config": "Configuración",
"sandboxDescription": "Habilitar el modo sandbox para probar el pago" "configInfo": "Información de Configuración",
}, "configPlaceholder": "Por favor, complete la configuración de {field} proporcionada",
"confirm": "Confirmar",
"confirmDelete": "Confirmar Eliminación",
"copy": "Copiar",
"copySuccess": "Copiado con éxito",
"create": "Agregar Método de Pago",
"createPayment": "Agregar Método de Pago",
"createSuccess": "Creado con éxito",
"delete": "Eliminar",
"deleteSuccess": "Eliminado con éxito",
"deleteWarning": "¿Está seguro de que desea eliminar este método de pago? Esta acción no se puede deshacer.",
"domain": "Dominio",
"domainPlaceholder": "opcional, p. ej. {example}",
"edit": "Editar",
"editPayment": "Editar Método de Pago",
"enable": "Habilitar", "enable": "Habilitar",
"enableDescription": "Habilitar este método de pago", "feeAmount": "Monto Fijo",
"epay": {
"key": "CLAVE",
"pid": "PID",
"url": "URL"
},
"feeMode": "Modo de cobro", "feeMode": "Modo de cobro",
"feeModeDescription": "Modo de cobro de tarifas adicionales",
"feeModeItems": ["Sin tarifa", "Porcentaje", "Cantidad fija", "Ambos"],
"feePercent": "Porcentaje de tarifa (opcional)", "feePercent": "Porcentaje de tarifa (opcional)",
"feePercentDescription": "Se añade una tarifa sobre el monto del pedido",
"fixedFee": "Cuota fija (opcional)", "fixedFee": "Cuota fija (opcional)",
"fixedFeeDescription": "Agregar una tarifa fija sobre el monto del pedido", "handlingFee": "Cargo por manejo",
"iconUrl": "URL del ícono (opcional)", "icon": "Ícono",
"iconUrlDescription": "Usado para mostrar en el frontend", "iconPlaceholder": "Ingrese la URL del ícono",
"inputPlaceholder": "Por favor ingrese", "mark": "Identificador",
"key": "LLAVE", "markPlaceholder": "Ingrese el identificador del método de pago",
"notifyUrl": "Dominio de notificación personalizado (opcional)", "name": "Nombre",
"notifyUrlDescription": "La notificación del gateway se enviará a este dominio", "namePlaceholder": "Ingrese el nombre del método de pago",
"payForRecommendations": "Pagar por recomendaciones", "nameRequired": "El nombre es obligatorio",
"pid": "PID", "noFee": "Sin Tarifa",
"saveSuccess": "Guardado exitoso", "paymentManagement": "Gestión de Pagos",
"showName": "Mostrar nombre", "percentFee": "Porcentaje",
"showNameDescription": "Usado para mostrar en el frontend", "platform": "Plataforma",
"stripe": { "searchPlaceholder": "Ingrese términos de búsqueda",
"publicKey": "CLAVE PÚBLICA", "selectPlatform": "Seleccionar Plataforma",
"secretKey": "CLAVE SECRETA", "selectType": "Seleccionar tipo de pago",
"webhookSecret": "FIRMA DE SECRETO DE WEBHOOK" "submit": "Enviar",
}, "type": "Tipo",
"url": "URL", "updateSuccess": "Actualizado con éxito"
"wechatPay": "WeChat Pay"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "پرداخت علی‌پی", "AlipayF2F": "علی‌پی چهره به چهره",
"alipayf2f": { "EPay": "ای‌پی",
"appId": "شناسه برنامه Alipay", "Stripe": "استرایپ",
"invoiceName": "نام محصول سفارشی", "applyForPayment": "درخواست پرداخت",
"invoiceNameDescription": "در صورتحساب Alipay نمایش داده خواهد شد", "balance": "موجودی",
"privateKey": "کلید خصوصی Alipay", "batchDelete": "حذف دسته‌ای",
"publicKey": "کلید عمومی Alipay", "cancel": "لغو",
"sandbox": "حالت Sandbox", "config": "پیکربندی",
"sandboxDescription": "حالت sandbox را برای آزمایش پرداخت‌ها فعال کنید" "configInfo": "اطلاعات پیکربندی",
}, "configPlaceholder": "لطفاً پیکربندی {field} ارائه شده را پر کنید",
"confirm": "تأیید",
"confirmDelete": "تأیید حذف",
"copy": "کپی",
"copySuccess": "با موفقیت کپی شد",
"create": "افزودن روش پرداخت",
"createPayment": "افزودن روش پرداخت",
"createSuccess": "با موفقیت ایجاد شد",
"delete": "حذف",
"deleteSuccess": "با موفقیت حذف شد",
"deleteWarning": "آیا مطمئن هستید که می‌خواهید این روش پرداخت را حذف کنید؟ این عمل قابل بازگشت نیست.",
"domain": "دامنه",
"domainPlaceholder": "اختیاری، به عنوان مثال {example}",
"edit": "ویرایش",
"editPayment": "ویرایش روش پرداخت",
"enable": "فعال کردن", "enable": "فعال کردن",
"enableDescription": "این روش پرداخت را فعال کنید", "feeAmount": "مقدار ثابت",
"epay": {
"key": "کلید",
"pid": "شناسه محصول",
"url": "نشانی وب"
},
"feeMode": "حالت هزینه", "feeMode": "حالت هزینه",
"feeModeDescription": "روش دریافت هزینه برای هزینه‌های اضافی",
"feeModeItems": ["بدون هزینه", "درصدی", "مبلغ ثابت", "هر دو"],
"feePercent": "درصد کارمزد (اختیاری)", "feePercent": "درصد کارمزد (اختیاری)",
"feePercentDescription": "افزودن کارمزد به مبلغ سفارش",
"fixedFee": "هزینه ثابت (اختیاری)", "fixedFee": "هزینه ثابت (اختیاری)",
"fixedFeeDescription": "افزودن هزینه ثابت به مبلغ سفارش", "handlingFee": "هزینه خدمات",
"iconUrl": "آدرس آیکون (اختیاری)", "icon": "آیکون",
"iconUrlDescription": "برای نمایش در رابط کاربری استفاده می‌شود", "iconPlaceholder": "آدرس URL آیکون را وارد کنید",
"inputPlaceholder": "لطفاً وارد کنید", "mark": "شناسه",
"key": "کلید", "markPlaceholder": "شناسه روش پرداخت را وارد کنید",
"notifyUrl": "دامنه اعلان سفارشی (اختیاری)", "name": "نام",
"notifyUrlDescription": "اعلان‌های درگاه به این دامنه ارسال خواهند شد", "namePlaceholder": "نام روش پرداخت را وارد کنید",
"payForRecommendations": "پرداخت برای توصیه‌ها", "nameRequired": "نام الزامی است",
"pid": "شناسه فرآیند", "noFee": "بدون هزینه",
"saveSuccess": "ذخیره با موفقیت انجام شد", "paymentManagement": "مدیریت پرداخت",
"showName": "نمایش نام", "percentFee": "درصد",
"showNameDescription": "برای نمایش در قسمت جلویی استفاده می‌شود", "platform": "پلتفرم",
"stripe": { "searchPlaceholder": "عبارات جستجو را وارد کنید",
"publicKey": "کلید عمومی", "selectPlatform": "انتخاب پلتفرم",
"secretKey": "کلید مخفی", "selectType": "انتخاب نوع پرداخت",
"webhookSecret": "کلید مخفی وب‌هوک" "submit": "ارسال",
}, "type": "نوع",
"url": "آدرس اینترنتی", "updateSuccess": "با موفقیت به‌روزرسانی شد"
"wechatPay": "وی‌چت پی"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "Alipay-maksu", "AlipayF2F": "Alipay Kasvokkain",
"alipayf2f": { "EPay": "EPay",
"appId": "Alipay-sovelluksen ID", "Stripe": "Stripe",
"invoiceName": "Mukautettu tuotteen nimi", "applyForPayment": "Hae maksua",
"invoiceNameDescription": "Näkyy Alipay-laskussa", "balance": "Saldo",
"privateKey": "Alipay-yksityinen avain", "batchDelete": "Ryhmän poisto",
"publicKey": "Alipay-julkinen avain", "cancel": "Peruuta",
"sandbox": "Hiekkalaatikkotila", "config": "Konfiguraatio",
"sandboxDescription": "Ota hiekkalaatikkotila käyttöön maksujen testaamiseksi" "configInfo": "Konfiguraatio tiedot",
}, "configPlaceholder": "Täytä annettu {field} konfiguraatio",
"confirm": "Vahvista",
"confirmDelete": "Vahvista poisto",
"copy": "Kopioi",
"copySuccess": "Kopiointi onnistui",
"create": "Lisää maksutapa",
"createPayment": "Lisää maksutapa",
"createSuccess": "Luonti onnistui",
"delete": "Poista",
"deleteSuccess": "Poisto onnistui",
"deleteWarning": "Oletko varma, että haluat poistaa tämän maksutavan? Tätä toimintoa ei voi peruuttaa.",
"domain": "Verkkotunnus",
"domainPlaceholder": "valinnainen, esim. {esimerkki}",
"edit": "Muokkaa",
"editPayment": "Muokkaa maksutapaa",
"enable": "Ota käyttöön", "enable": "Ota käyttöön",
"enableDescription": "Ota tämä maksutapa käyttöön", "feeAmount": "Kiinteä summa",
"epay": {
"key": "AVAIN",
"pid": "PID",
"url": "URL"
},
"feeMode": "Maksutapa", "feeMode": "Maksutapa",
"feeModeDescription": "Lisämaksun veloitustapa",
"feeModeItems": ["Ei käsittelymaksua", "Prosenttiosuus", "Kiinteä summa", "Molemmat yllä olevat"],
"feePercent": "Prosenttiosuusmaksu (valinnainen)", "feePercent": "Prosenttiosuusmaksu (valinnainen)",
"feePercentDescription": "Lisätään maksu tilauksen summan päälle",
"fixedFee": "Kiinteä maksu (valinnainen)", "fixedFee": "Kiinteä maksu (valinnainen)",
"fixedFeeDescription": "Lisää kiinteä maksu tilauksen summan päälle", "handlingFee": "Käsittelymaksu",
"iconUrl": "Kuvakkeen URL (valinnainen)", "icon": "Ikoni",
"iconUrlDescription": "Käytetään etunäytössä", "iconPlaceholder": "Syötä ikonin URL-osoite",
"inputPlaceholder": "Kirjoita tähän", "mark": "Tunniste",
"key": "AVAIN", "markPlaceholder": "Syötä maksutavan tunniste",
"notifyUrl": "Mukautettu ilmoitusalue (valinnainen)", "name": "Nimi",
"notifyUrlDescription": "Yhdyskäytävän ilmoitus lähetetään tähän verkkotunnukseen", "namePlaceholder": "Syötä maksutavan nimi",
"payForRecommendations": "Maksa suosituksista", "nameRequired": "Nimi on pakollinen",
"pid": "PID", "noFee": "Ei maksua",
"saveSuccess": "Tallennus onnistui", "paymentManagement": "Maksujen hallinta",
"showName": "Näytä nimi", "percentFee": "Prosentti",
"showNameDescription": "Näytetään käyttöliittymässä", "platform": "Alusta",
"stripe": { "searchPlaceholder": "Syötä hakusanat",
"publicKey": "JULKINEN AVAIN", "selectPlatform": "Valitse alusta",
"secretKey": "SALAINEN AVAIN", "selectType": "Valitse maksutyyppi",
"webhookSecret": "WEBHOOK-SALAINEN ALLEKIRJOITUS" "submit": "Lähetä",
}, "type": "Tyyppi",
"url": "URL", "updateSuccess": "Päivitys onnistui"
"wechatPay": "WeChat-maksu"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "Paiement par Alipay", "AlipayF2F": "Alipay Face à Face",
"alipayf2f": { "EPay": "EPay",
"appId": "ID de l'application Alipay", "Stripe": "Stripe",
"invoiceName": "Nom personnalisé du produit", "applyForPayment": "Demander un paiement",
"invoiceNameDescription": "S'affichera sur la facture Alipay", "balance": "Solde",
"privateKey": "Clé privée Alipay", "batchDelete": "Suppression par lot",
"publicKey": "Clé publique Alipay", "cancel": "Annuler",
"sandbox": "Mode bac à sable", "config": "Configuration",
"sandboxDescription": "Activez le mode bac à sable pour tester le paiement" "configInfo": "Informations de configuration",
}, "configPlaceholder": "Veuillez remplir la configuration {field} fournie",
"confirm": "Confirmer",
"confirmDelete": "Confirmer la suppression",
"copy": "Copier",
"copySuccess": "Copié avec succès",
"create": "Ajouter un mode de paiement",
"createPayment": "Ajouter un mode de paiement",
"createSuccess": "Créé avec succès",
"delete": "Supprimer",
"deleteSuccess": "Supprimé avec succès",
"deleteWarning": "Êtes-vous sûr de vouloir supprimer ce mode de paiement ? Cette action ne peut pas être annulée.",
"domain": "Domaine",
"domainPlaceholder": "facultatif, par exemple {exemple}",
"edit": "Modifier",
"editPayment": "Modifier le mode de paiement",
"enable": "Activer", "enable": "Activer",
"enableDescription": "Activer ce mode de paiement", "feeAmount": "Montant fixe",
"epay": {
"key": "CLÉ",
"pid": "PID",
"url": "URL"
},
"feeMode": "Mode de facturation", "feeMode": "Mode de facturation",
"feeModeDescription": "Mode de facturation des frais supplémentaires",
"feeModeItems": ["Pas de frais", "Pourcentage", "Montant fixe", "Les deux ci-dessus"],
"feePercent": "Pourcentage de frais (optionnel)", "feePercent": "Pourcentage de frais (optionnel)",
"feePercentDescription": "Ajouter des frais au montant de la commande",
"fixedFee": "Frais fixes (optionnel)", "fixedFee": "Frais fixes (optionnel)",
"fixedFeeDescription": "Ajouter des frais fixes au montant de la commande", "handlingFee": "Frais de traitement",
"iconUrl": "URL de l'icône (facultatif)", "icon": "Icône",
"iconUrlDescription": "Utilisé pour l'affichage frontal", "iconPlaceholder": "Entrez l'URL de l'icône",
"inputPlaceholder": "Veuillez entrer", "mark": "Identifiant",
"key": "CLÉ", "markPlaceholder": "Entrez l'identifiant du mode de paiement",
"notifyUrl": "Domaine de notification personnalisé (facultatif)", "name": "Nom",
"notifyUrlDescription": "Les notifications de la passerelle seront envoyées à ce domaine", "namePlaceholder": "Entrez le nom du mode de paiement",
"payForRecommendations": "Payer pour les recommandations", "nameRequired": "Le nom est requis",
"pid": "PID", "noFee": "Pas de frais",
"saveSuccess": "Enregistrement réussi", "paymentManagement": "Gestion des paiements",
"showName": "Afficher le nom", "percentFee": "Pourcentage",
"showNameDescription": "Utilisé pour l'affichage frontal", "platform": "Plateforme",
"stripe": { "searchPlaceholder": "Entrez des termes de recherche",
"publicKey": "CLÉ PUBLIQUE", "selectPlatform": "Sélectionner la plateforme",
"secretKey": "CLÉ SECRÈTE", "selectType": "Sélectionner le type de paiement",
"webhookSecret": "SIGNATURE DE CLÉ WEBHOOK" "submit": "Soumettre",
}, "type": "Type",
"url": "URL", "updateSuccess": "Mis à jour avec succès"
"wechatPay": "Paiement WeChat"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "अलीपे भुगतान", "AlipayF2F": "अलीपे फेस टू फेस",
"alipayf2f": { "EPay": "ईपे",
"appId": "अलीपे एप्लिकेशन आईडी", "Stripe": "स्ट्राइप",
"invoiceName": "कस्टम उत्पाद नाम", "applyForPayment": "भुगतान के लिए आवेदन करें",
"invoiceNameDescription": "अलीपे बिल में प्रदर्शित होगा", "balance": "शेष",
"privateKey": "अलीपे निजी कुंजी", "batchDelete": "बैच हटाएं",
"publicKey": "अलीपे सार्वजनिक कुंजी", "cancel": "रद्द करें",
"sandbox": "सैंडबॉक्स मोड", "config": "कॉन्फ़िगरेशन",
"sandboxDescription": "भुगतान का परीक्षण करने के लिए सैंडबॉक्स मोड सक्षम करें" "configInfo": "कॉन्फ़िगरेशन जानकारी",
}, "configPlaceholder": "कृपया प्रदान किए गए {field} कॉन्फ़िगरेशन को भरें",
"confirm": "पुष्टि करें",
"confirmDelete": "हटाने की पुष्टि करें",
"copy": "कॉपी करें",
"copySuccess": "सफलता से कॉपी किया गया",
"create": "भुगतान विधि जोड़ें",
"createPayment": "भुगतान विधि जोड़ें",
"createSuccess": "सफलता से बनाया गया",
"delete": "हटाएं",
"deleteSuccess": "सफलता से हटाया गया",
"deleteWarning": "क्या आप वास्तव में इस भुगतान विधि को हटाना चाहते हैं? यह क्रिया पूर्ववत नहीं की जा सकती।",
"domain": "डोमेन",
"domainPlaceholder": "वैकल्पिक, जैसे कि {example}",
"edit": "संपादित करें",
"editPayment": "भुगतान विधि संपादित करें",
"enable": "सक्षम करें", "enable": "सक्षम करें",
"enableDescription": "इस भुगतान विधि को सक्षम करें", "feeAmount": "निश्चित राशि",
"epay": {
"key": "कुंजी",
"pid": "पीआईडी",
"url": "यूआरएल"
},
"feeMode": "शुल्क मोड", "feeMode": "शुल्क मोड",
"feeModeDescription": "अतिरिक्त शुल्क की वसूली का तरीका",
"feeModeItems": ["कोई शुल्क नहीं", "प्रतिशत", "निश्चित राशि", "उपरोक्त दोनों"],
"feePercent": "प्रतिशत शुल्क (वैकल्पिक)", "feePercent": "प्रतिशत शुल्क (वैकल्पिक)",
"feePercentDescription": "ऑर्डर राशि के ऊपर शुल्क जोड़ा जाएगा",
"fixedFee": "निश्चित शुल्क (वैकल्पिक)", "fixedFee": "निश्चित शुल्क (वैकल्पिक)",
"fixedFeeDescription": "ऑर्डर राशि के ऊपर एक निश्चित शुल्क जोड़ा जाता है", "handlingFee": "हैंडलिंग शुल्क",
"iconUrl": "आइकन URL (वैकल्पिक)", "icon": "चिन्ह",
"iconUrlDescription": "फ्रंटएंड प्रदर्शन के लिए उपयोग किया जाता है", "iconPlaceholder": "चिन्ह URL दर्ज करें",
"inputPlaceholder": "कृपया दर्ज करें", "mark": "पहचानकर्ता",
"key": "कुंजी", "markPlaceholder": "भुगतान विधि पहचानकर्ता दर्ज करें",
"notifyUrl": "कस्टम अधिसूचना डोमेन (वैकल्पिक)", "name": "नाम",
"notifyUrlDescription": "गेटवे सूचना इस डोमेन पर भेजी जाएगी", "namePlaceholder": "भुगतान विधि का नाम दर्ज करें",
"payForRecommendations": "सिफारिशों के लिए भुगतान करें", "nameRequired": "नाम आवश्यक है",
"pid": "पीआईडी", "noFee": "कोई शुल्क नहीं",
"saveSuccess": "सहेजा गया", "paymentManagement": "भुगतान प्रबंधन",
"showName": "नाम दिखाएं", "percentFee": "प्रतिशत",
"showNameDescription": "फ्रंटएंड प्रदर्शन के लिए उपयोग किया जाता है", "platform": "प्लेटफ़ॉर्म",
"stripe": { "searchPlaceholder": "खोज शब्द दर्ज करें",
"publicKey": "सार्वजनिक कुंजी", "selectPlatform": "प्लेटफ़ॉर्म चुनें",
"secretKey": "गुप्त कुंजी", "selectType": "भुगतान प्रकार चुनें",
"webhookSecret": "वेबहुक कुंजी हस्ताक्षर" "submit": "जमा करें",
}, "type": "प्रकार",
"url": "यूआरएल", "updateSuccess": "सफलता से अपडेट किया गया"
"wechatPay": "वीचैट पे"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "Alipay fizetés", "AlipayF2F": "Alipay Személyesen",
"alipayf2f": { "EPay": "EPay",
"appId": "Alipay alkalmazásazonosító", "Stripe": "Stripe",
"invoiceName": "Egyedi terméknév", "applyForPayment": "Kérjen kifizetést",
"invoiceNameDescription": "A számlán az Alipay-ben fog megjelenni", "balance": "Egyenleg",
"privateKey": "Alipay privát kulcs", "batchDelete": "Tömeges törlés",
"publicKey": "Alipay nyilvános kulcs", "cancel": "Mégse",
"sandbox": "Tesztkörnyezet", "config": "Beállítások",
"sandboxDescription": "Tesztkörnyezet engedélyezése a fizetések teszteléséhez" "configInfo": "Beállítási információk",
}, "configPlaceholder": "Kérjük, töltse ki a megadott {field} beállítást",
"confirm": "Megerősít",
"confirmDelete": "Törlés megerősítése",
"copy": "Másolás",
"copySuccess": "Sikeresen másolva",
"create": "Fizetési mód hozzáadása",
"createPayment": "Fizetési mód hozzáadása",
"createSuccess": "Sikeresen létrehozva",
"delete": "Törlés",
"deleteSuccess": "Sikeresen törölve",
"deleteWarning": "Biztosan törölni szeretné ezt a fizetési módot? Ez a művelet nem vonható vissza.",
"domain": "Domain",
"domainPlaceholder": "opcionális, pl. {példa}",
"edit": "Szerkesztés",
"editPayment": "Fizetési mód szerkesztése",
"enable": "Engedélyezés", "enable": "Engedélyezés",
"enableDescription": "Engedélyezze ezt a fizetési módot", "feeAmount": "Fix összeg",
"epay": {
"key": "KULCS",
"pid": "PID",
"url": "URL"
},
"feeMode": "Díjfizetési mód", "feeMode": "Díjfizetési mód",
"feeModeDescription": "További díjak felszámításának módja",
"feeModeItems": ["Nincs díj", "Százalékos", "Fix összeg", "Mindkettő"],
"feePercent": "Díjszázalék (opcionális)", "feePercent": "Díjszázalék (opcionális)",
"feePercentDescription": "Díj hozzáadása a rendelés összegéhez",
"fixedFee": "Fix díj (opcionális)", "fixedFee": "Fix díj (opcionális)",
"fixedFeeDescription": "Rögzített díj hozzáadása a rendelés összegéhez", "handlingFee": "Kezelési díj",
"iconUrl": "Ikon URL (opcionális)", "icon": "Ikon",
"iconUrlDescription": "Előnézeti kép megjelenítéséhez", "iconPlaceholder": "Adja meg az ikon URL-jét",
"inputPlaceholder": "Kérjük, írja be", "mark": "Azonosító",
"key": "KULCS", "markPlaceholder": "Adja meg a fizetési mód azonosítóját",
"notifyUrl": "Egyéni értesítési domain (opcionális)", "name": "Név",
"notifyUrlDescription": "A kapu értesítéseket erre a tartományra küldi", "namePlaceholder": "Adja meg a fizetési mód nevét",
"payForRecommendations": "Fizetés ajánlásokért", "nameRequired": "A név megadása kötelező",
"pid": "PID", "noFee": "Nincs díj",
"saveSuccess": "Sikeres mentés", "paymentManagement": "Fizetéskezelés",
"showName": "Megjelenítési név", "percentFee": "Százalékos díj",
"showNameDescription": "Előnézet megjelenítésére használatos", "platform": "Platform",
"stripe": { "searchPlaceholder": "Adja meg a keresési kifejezéseket",
"publicKey": "NYILVÁNOS KULCS", "selectPlatform": "Válassza ki a platformot",
"secretKey": "TITKOS KULCS", "selectType": "Válassza ki a fizetési típust",
"webhookSecret": "WEBHOOK TITKOS ALÁÍRÁS" "submit": "Beküldés",
}, "type": "Típus",
"url": "URL", "updateSuccess": "Sikeresen frissítve"
"wechatPay": "WeChat fizetés"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "アリペイ決済", "AlipayF2F": "アリペイ対面",
"alipayf2f": { "EPay": "EPay",
"appId": "支付宝アプリID", "Stripe": "ストライプ",
"invoiceName": "カスタム製品名", "applyForPayment": "支払いを申請する",
"invoiceNameDescription": "支付宝の請求書に表示されます", "balance": "残高",
"privateKey": "支付宝プライベートキー", "batchDelete": "一括削除",
"publicKey": "支付宝パブリックキー", "cancel": "キャンセル",
"sandbox": "サンドボックスモード", "config": "設定",
"sandboxDescription": "支払いをテストするためにサンドボックスモードを有効にします" "configInfo": "設定情報",
}, "configPlaceholder": "提供された{field}の設定を入力してください",
"confirm": "確認",
"confirmDelete": "削除を確認",
"copy": "コピー",
"copySuccess": "コピー成功",
"create": "支払い方法を追加",
"createPayment": "支払い方法を追加",
"createSuccess": "作成成功",
"delete": "削除",
"deleteSuccess": "削除成功",
"deleteWarning": "この支払い方法を削除してもよろしいですか?この操作は元に戻せません。",
"domain": "ドメイン",
"domainPlaceholder": "任意、例:{example}",
"edit": "編集",
"editPayment": "支払い方法を編集",
"enable": "有効", "enable": "有効",
"enableDescription": "この支払い方法を有効にする", "feeAmount": "固定額",
"epay": {
"key": "キー",
"pid": "PID",
"url": "URL"
},
"feeMode": "料金方式", "feeMode": "料金方式",
"feeModeDescription": "追加手数料の課金方式",
"feeModeItems": ["手数料なし", "パーセンテージ", "固定金額", "上記の2つ"],
"feePercent": "パーセンテージ手数料(オプション)", "feePercent": "パーセンテージ手数料(オプション)",
"feePercentDescription": "注文金額に追加される手数料",
"fixedFee": "固定料金(オプション)", "fixedFee": "固定料金(オプション)",
"fixedFeeDescription": "注文金額に固定料金を追加する", "handlingFee": "手数料",
"iconUrl": "アイコンURL任意", "icon": "アイコン",
"iconUrlDescription": "フロントエンド表示用", "iconPlaceholder": "アイコンのURLを入力してください",
"inputPlaceholder": "入力してください", "mark": "識別子",
"key": "キー", "markPlaceholder": "支払い方法の識別子を入力してください",
"notifyUrl": "カスタム通知ドメイン(オプション)", "name": "名前",
"notifyUrlDescription": "ゲートウェイ通知はこのドメインに送信されます", "namePlaceholder": "支払い方法の名前を入力してください",
"payForRecommendations": "おすすめの支払い", "nameRequired": "名前は必須です",
"pid": "PID", "noFee": "手数料なし",
"saveSuccess": "保存が成功しました", "paymentManagement": "支払い管理",
"showName": "表示名", "percentFee": "パーセンテージ",
"showNameDescription": "フロントエンド表示用", "platform": "プラットフォーム",
"stripe": { "searchPlaceholder": "検索用語を入力してください",
"publicKey": "パブリックキー", "selectPlatform": "プラットフォームを選択",
"secretKey": "シークレットキー", "selectType": "支払いタイプを選択",
"webhookSecret": "WEBHOOK シークレットサイン" "submit": "送信",
}, "type": "タイプ",
"url": "URL", "updateSuccess": "更新成功"
"wechatPay": "WeChatペイ"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "알리페이 결제", "AlipayF2F": "알리페이 대면 결제",
"alipayf2f": { "EPay": "이페이",
"appId": "알리페이 애플리케이션 ID", "Stripe": "스트라이프",
"invoiceName": "사용자 정의 제품 이름", "applyForPayment": "결제 신청",
"invoiceNameDescription": "알리페이 청구서에 표시됩니다", "balance": "잔액",
"privateKey": "알리페이 개인 키", "batchDelete": "일괄 삭제",
"publicKey": "알리페이 공개 키", "cancel": "취소",
"sandbox": "샌드박스 모드", "config": "설정",
"sandboxDescription": "결제를 테스트하기 위해 샌드박스 모드를 활성화합니다" "configInfo": "설정 정보",
}, "configPlaceholder": "{field} 설정을 입력해 주세요",
"confirm": "확인",
"confirmDelete": "삭제 확인",
"copy": "복사",
"copySuccess": "복사 성공",
"create": "결제 수단 추가",
"createPayment": "결제 수단 추가",
"createSuccess": "생성 성공",
"delete": "삭제",
"deleteSuccess": "삭제 성공",
"deleteWarning": "이 결제 수단을 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.",
"domain": "도메인",
"domainPlaceholder": "선택 사항, 예: {example}",
"edit": "편집",
"editPayment": "결제 수단 편집",
"enable": "사용", "enable": "사용",
"enableDescription": "이 결제 수단을 활성화합니다", "feeAmount": "고정 금액",
"epay": {
"key": "키",
"pid": "PID",
"url": "URL"
},
"feeMode": "요금 방식", "feeMode": "요금 방식",
"feeModeDescription": "추가 수수료의 부과 방식",
"feeModeItems": ["수수료 없음", "백분율", "고정 금액", "이상 두 가지"],
"feePercent": "수수료 비율(선택 사항)", "feePercent": "수수료 비율(선택 사항)",
"feePercentDescription": "주문 금액에 추가 요금 부과",
"fixedFee": "고정 수수료(선택 사항)", "fixedFee": "고정 수수료(선택 사항)",
"fixedFeeDescription": "주문 금액에 고정 요금 추가", "handlingFee": "수수료",
"iconUrl": "아이콘 URL(선택 사항)", "icon": "아이콘",
"iconUrlDescription": "프론트엔드 표시용", "iconPlaceholder": "아이콘 URL 입력",
"inputPlaceholder": "입력하세요", "mark": "식별자",
"key": "키", "markPlaceholder": "결제 수단 식별자 입력",
"notifyUrl": "사용자 정의 알림 도메인 (선택 사항)", "name": "이름",
"notifyUrlDescription": "게이트웨이 알림이 이 도메인으로 전송됩니다", "namePlaceholder": "결제 수단 이름 입력",
"payForRecommendations": "추천에 대한 지불", "nameRequired": "이름은 필수입니다",
"pid": "PID", "noFee": "수수료 없음",
"saveSuccess": "저장 성공", "paymentManagement": "결제 관리",
"showName": "이름 표시", "percentFee": "백분율",
"showNameDescription": "프론트엔드 표시용", "platform": "플랫폼",
"stripe": { "searchPlaceholder": "검색어 입력",
"publicKey": "공개 키", "selectPlatform": "플랫폼 선택",
"secretKey": "비밀 키", "selectType": "결제 유형 선택",
"webhookSecret": "웹훅 비밀 서명" "submit": "제출",
}, "type": "유형",
"url": "URL", "updateSuccess": "업데이트 성공"
"wechatPay": "위챗페이"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "Betaling med Alipay", "AlipayF2F": "Alipay Ansikt-til-Ansikt",
"alipayf2f": { "EPay": "EPay",
"appId": "Alipay-applikasjons-ID", "Stripe": "Stripe",
"invoiceName": "Tilpasset produktnavn", "applyForPayment": "Søk om betaling",
"invoiceNameDescription": "Vil vises på Alipay-fakturaen", "balance": "Saldo",
"privateKey": "Alipay privat nøkkel", "batchDelete": "Slett i batch",
"publicKey": "Alipay offentlig nøkkel", "cancel": "Avbryt",
"sandbox": "Sandkassemodus", "config": "Konfigurasjon",
"sandboxDescription": "Aktiver sandkassemodus for å teste betaling" "configInfo": "Konfigurasjonsinformasjon",
}, "configPlaceholder": "Vennligst fyll inn den angitte {field} konfigurasjonen",
"confirm": "Bekreft",
"confirmDelete": "Bekreft sletting",
"copy": "Kopier",
"copySuccess": "Kopiert med suksess",
"create": "Legg til betalingsmetode",
"createPayment": "Legg til betalingsmetode",
"createSuccess": "Opprettet med suksess",
"delete": "Slett",
"deleteSuccess": "Slettet med suksess",
"deleteWarning": "Er du sikker på at du vil slette denne betalingsmetoden? Denne handlingen kan ikke angres.",
"domain": "Domene",
"domainPlaceholder": "valgfritt, f.eks. {example}",
"edit": "Rediger",
"editPayment": "Rediger betalingsmetode",
"enable": "Aktiver", "enable": "Aktiver",
"enableDescription": "Aktiver denne betalingsmetoden", "feeAmount": "Fast beløp",
"epay": {
"key": "NØKKEL",
"pid": "PID",
"url": "URL"
},
"feeMode": "Avgiftsmåte", "feeMode": "Avgiftsmåte",
"feeModeDescription": "Gebyrmodus for ekstra avgifter",
"feeModeItems": ["Ingen gebyr", "Prosentandel", "Fast beløp", "Begge ovennevnte"],
"feePercent": "Prosentavgift (valgfritt)", "feePercent": "Prosentavgift (valgfritt)",
"feePercentDescription": "Legg til et gebyr på toppen av ordrebeløpet",
"fixedFee": "Fast gebyr (valgfritt)", "fixedFee": "Fast gebyr (valgfritt)",
"fixedFeeDescription": "Legg til et fast gebyr i tillegg til ordrebeløpet", "handlingFee": "Håndteringsgebyr",
"iconUrl": "Ikon URL (valgfritt)", "icon": "Ikon",
"iconUrlDescription": "Brukes for visning på frontend", "iconPlaceholder": "Skriv inn ikon-URL",
"inputPlaceholder": "Vennligst skriv inn", "mark": "Identifikator",
"key": "NØKKEL", "markPlaceholder": "Skriv inn identifikator for betalingsmetode",
"notifyUrl": "Tilpasset varslingsdomene (valgfritt)", "name": "Navn",
"notifyUrlDescription": "Gateway-varsler vil bli sendt til dette domenet", "namePlaceholder": "Skriv inn navn på betalingsmetode",
"payForRecommendations": "Betal for anbefalinger", "nameRequired": "Navn er påkrevd",
"pid": "PID", "noFee": "Ingen gebyr",
"saveSuccess": "Lagring vellykket", "paymentManagement": "Betalingsadministrasjon",
"showName": "Vis navn", "percentFee": "Prosentandel",
"showNameDescription": "Brukes for visning på frontend", "platform": "Plattform",
"stripe": { "searchPlaceholder": "Skriv inn søkeord",
"publicKey": "OFFENTLIG NØKKEL", "selectPlatform": "Velg plattform",
"secretKey": "HEMMELIG NØKKEL", "selectType": "Velg betalingstype",
"webhookSecret": "WEBHOOK SIGNATUR" "submit": "Send inn",
}, "type": "Type",
"url": "URL", "updateSuccess": "Oppdatert med suksess"
"wechatPay": "WeChat-betaling"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "Płatność Alipay", "AlipayF2F": "Alipay Twarzą w Twarz",
"alipayf2f": { "EPay": "EPay",
"appId": "ID aplikacji Alipay", "Stripe": "Stripe",
"invoiceName": "Niestandardowa nazwa produktu", "applyForPayment": "Złóż wniosek o płatność",
"invoiceNameDescription": "Będzie wyświetlana na rachunku Alipay", "balance": "Saldo",
"privateKey": "Klucz prywatny Alipay", "batchDelete": "Usuwanie zbiorcze",
"publicKey": "Klucz publiczny Alipay", "cancel": "Anuluj",
"sandbox": "Tryb piaskownicy", "config": "Konfiguracja",
"sandboxDescription": "Włącz tryb piaskownicy, aby przetestować płatności" "configInfo": "Informacje o konfiguracji",
}, "configPlaceholder": "Proszę wypełnić konfigurację {field}",
"confirm": "Potwierdź",
"confirmDelete": "Potwierdź usunięcie",
"copy": "Kopiuj",
"copySuccess": "Skopiowano pomyślnie",
"create": "Dodaj metodę płatności",
"createPayment": "Dodaj metodę płatności",
"createSuccess": "Utworzono pomyślnie",
"delete": "Usuń",
"deleteSuccess": "Usunięto pomyślnie",
"deleteWarning": "Czy na pewno chcesz usunąć tę metodę płatności? Ta akcja jest nieodwracalna.",
"domain": "Domena",
"domainPlaceholder": "opcjonalnie, np. {example}",
"edit": "Edytuj",
"editPayment": "Edytuj metodę płatności",
"enable": "Włącz", "enable": "Włącz",
"enableDescription": "Włącz tę metodę płatności", "feeAmount": "Kwota stała",
"epay": {
"key": "KLUCZ",
"pid": "PID",
"url": "URL"
},
"feeMode": "Sposób naliczania opłat", "feeMode": "Sposób naliczania opłat",
"feeModeDescription": "Sposób naliczania dodatkowej opłaty",
"feeModeItems": ["Bez opłaty", "Procent", "Stała kwota", "Oba powyższe"],
"feePercent": "Procentowa opłata (opcjonalnie)", "feePercent": "Procentowa opłata (opcjonalnie)",
"feePercentDescription": "Dodaj opłatę do kwoty zamówienia",
"fixedFee": "Stała opłata (opcjonalnie)", "fixedFee": "Stała opłata (opcjonalnie)",
"fixedFeeDescription": "Dodaj stałą opłatę do kwoty zamówienia", "handlingFee": "Opłata manipulacyjna",
"iconUrl": "URL ikony (opcjonalnie)", "icon": "Ikona",
"iconUrlDescription": "Używane do wyświetlania na froncie", "iconPlaceholder": "Wprowadź URL ikony",
"inputPlaceholder": "Wprowadź tekst", "mark": "Identyfikator",
"key": "KLUCZ", "markPlaceholder": "Wprowadź identyfikator metody płatności",
"notifyUrl": "Niestandardowa domena powiadomień (opcjonalnie)", "name": "Nazwa",
"notifyUrlDescription": "Powiadomienie bramki zostanie wysłane na tę domenę", "namePlaceholder": "Wprowadź nazwę metody płatności",
"payForRecommendations": "Zapłać za rekomendacje", "nameRequired": "Nazwa jest wymagana",
"pid": "PID", "noFee": "Brak opłaty",
"saveSuccess": "Zapisano pomyślnie", "paymentManagement": "Zarządzanie płatnościami",
"showName": "Pokaż nazwę", "percentFee": "Procent",
"showNameDescription": "Używane do wyświetlania na froncie", "platform": "Platforma",
"stripe": { "searchPlaceholder": "Wprowadź hasła do wyszukiwania",
"publicKey": "KLUCZ PUBLICZNY", "selectPlatform": "Wybierz platformę",
"secretKey": "KLUCZ TAJNY", "selectType": "Wybierz typ płatności",
"webhookSecret": "PODPIS KLUCZA WEBHOOK" "submit": "Wyślij",
}, "type": "Typ",
"url": "URL", "updateSuccess": "Zaktualizowano pomyślnie"
"wechatPay": "WeChat Pay"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "Pagamento com Alipay", "AlipayF2F": "Alipay Face a Face",
"alipayf2f": { "EPay": "EPay",
"appId": "ID do aplicativo Alipay", "Stripe": "Stripe",
"invoiceName": "Nome personalizado do produto", "applyForPayment": "Solicitar Pagamento",
"invoiceNameDescription": "Será exibido na fatura do Alipay", "balance": "Saldo",
"privateKey": "Chave privada do Alipay", "batchDelete": "Excluir em Lote",
"publicKey": "Chave pública do Alipay", "cancel": "Cancelar",
"sandbox": "Modo sandbox", "config": "Configuração",
"sandboxDescription": "Ative o modo sandbox para testar pagamentos" "configInfo": "Informações de Configuração",
}, "configPlaceholder": "Por favor, preencha a configuração de {field} fornecida",
"confirm": "Confirmar",
"confirmDelete": "Confirmar Exclusão",
"copy": "Copiar",
"copySuccess": "Copiado com sucesso",
"create": "Adicionar Método de Pagamento",
"createPayment": "Adicionar Método de Pagamento",
"createSuccess": "Criado com sucesso",
"delete": "Excluir",
"deleteSuccess": "Excluído com sucesso",
"deleteWarning": "Você tem certeza de que deseja excluir este método de pagamento? Esta ação não pode ser desfeita.",
"domain": "Domínio",
"domainPlaceholder": "opcional, por exemplo, {exemplo}",
"edit": "Editar",
"editPayment": "Editar Método de Pagamento",
"enable": "Habilitar", "enable": "Habilitar",
"enableDescription": "Ativar este método de pagamento", "feeAmount": "Valor Fixo",
"epay": {
"key": "CHAVE",
"pid": "PID",
"url": "URL"
},
"feeMode": "Modo de Cobrança", "feeMode": "Modo de Cobrança",
"feeModeDescription": "Modo de cobrança de taxas adicionais",
"feeModeItems": ["Sem taxa", "Porcentagem", "Valor fixo", "Ambos os anteriores"],
"feePercent": "Percentual de taxa (opcional)", "feePercent": "Percentual de taxa (opcional)",
"feePercentDescription": "Adicionar taxa sobre o valor do pedido",
"fixedFee": "Taxa fixa (opcional)", "fixedFee": "Taxa fixa (opcional)",
"fixedFeeDescription": "Adicionar uma taxa fixa sobre o valor do pedido", "handlingFee": "Taxa de Manipulação",
"iconUrl": "URL do ícone (opcional)", "icon": "Ícone",
"iconUrlDescription": "Usado para exibição no front-end", "iconPlaceholder": "Digite a URL do ícone",
"inputPlaceholder": "Por favor, insira", "mark": "Identificador",
"key": "CHAVE", "markPlaceholder": "Digite o identificador do método de pagamento",
"notifyUrl": "Domínio de notificação personalizado (opcional)", "name": "Nome",
"notifyUrlDescription": "A notificação do gateway será enviada para este domínio", "namePlaceholder": "Digite o nome do método de pagamento",
"payForRecommendations": "Pagar por recomendações", "nameRequired": "O nome é obrigatório",
"pid": "PID", "noFee": "Sem Taxa",
"saveSuccess": "Salvo com sucesso", "paymentManagement": "Gerenciamento de Pagamento",
"showName": "Mostrar Nome", "percentFee": "Porcentagem",
"showNameDescription": "Usado para exibição no front-end", "platform": "Plataforma",
"stripe": { "searchPlaceholder": "Digite os termos de pesquisa",
"publicKey": "CHAVE PÚBLICA", "selectPlatform": "Selecionar Plataforma",
"secretKey": "CHAVE SECRETA", "selectType": "Selecionar tipo de pagamento",
"webhookSecret": "ASSINATURA DA CHAVE DO WEBHOOK" "submit": "Enviar",
}, "type": "Tipo",
"url": "URL", "updateSuccess": "Atualizado com sucesso"
"wechatPay": "WeChat Pay"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "Plată cu Alipay", "AlipayF2F": "Alipay Față în Față",
"alipayf2f": { "EPay": "EPay",
"appId": "ID aplicație Alipay", "Stripe": "Stripe",
"invoiceName": "Nume personalizat produs", "applyForPayment": "Solicită Plată",
"invoiceNameDescription": "Va apărea în factura Alipay", "balance": "Sold",
"privateKey": "Cheie privată Alipay", "batchDelete": "Ștergere în Lot",
"publicKey": "Cheie publică Alipay", "cancel": "Anulează",
"sandbox": "Modul sandbox", "config": "Configurare",
"sandboxDescription": "Activează modul sandbox pentru a testa plățile" "configInfo": "Informații de Configurare",
}, "configPlaceholder": "Te rugăm să completezi configurația {field} furnizată",
"confirm": "Confirmă",
"confirmDelete": "Confirmă Ștergerea",
"copy": "Copiază",
"copySuccess": "Copiat cu succes",
"create": "Adaugă Metodă de Plată",
"createPayment": "Adaugă Metodă de Plată",
"createSuccess": "Creat cu succes",
"delete": "Șterge",
"deleteSuccess": "Șters cu succes",
"deleteWarning": "Ești sigur că vrei să ștergi această metodă de plată? Această acțiune nu poate fi anulată.",
"domain": "Domeniu",
"domainPlaceholder": "opțional, de exemplu {example}",
"edit": "Editează",
"editPayment": "Editează Metodă de Plată",
"enable": "Activare", "enable": "Activare",
"enableDescription": "Activează această metodă de plată", "feeAmount": "Sumă Fixă",
"epay": {
"key": "CHEIE",
"pid": "PID",
"url": "URL"
},
"feeMode": "Mod de taxare", "feeMode": "Mod de taxare",
"feeModeDescription": "Modul de taxare a comisioanelor suplimentare",
"feeModeItems": ["Fără comision", "Procentaj", "Sumă fixă", "Ambele"],
"feePercent": "Taxă procentuală (opțional)", "feePercent": "Taxă procentuală (opțional)",
"feePercentDescription": "Se adaugă o taxă peste suma comenzii",
"fixedFee": "Taxă fixă (opțional)", "fixedFee": "Taxă fixă (opțional)",
"fixedFeeDescription": "Adăugarea unei taxe fixe peste suma comenzii", "handlingFee": "Taxă de manipulare",
"iconUrl": "URL pictogramă (opțional)", "icon": "Iconiță",
"iconUrlDescription": "Utilizat pentru afișarea în front-end", "iconPlaceholder": "Introdu URL-ul iconiței",
"inputPlaceholder": "Introduceți", "mark": "Identificator",
"key": "CHEIE", "markPlaceholder": "Introdu identificatorul metodei de plată",
"notifyUrl": "Domeniu de notificare personalizat (opțional)", "name": "Nume",
"notifyUrlDescription": "Notificările de la gateway vor fi trimise la acest domeniu", "namePlaceholder": "Introdu numele metodei de plată",
"payForRecommendations": "Plătește pentru recomandări", "nameRequired": "Numele este necesar",
"pid": "PID", "noFee": "Fără Taxă",
"saveSuccess": "Salvare reușită", "paymentManagement": "Gestionare Plăți",
"showName": "Afișează Numele", "percentFee": "Procentaj",
"showNameDescription": "Utilizat pentru afișarea în interfața utilizatorului", "platform": "Platformă",
"stripe": { "searchPlaceholder": "Introdu termeni de căutare",
"publicKey": "CHEIE PUBLICĂ", "selectPlatform": "Selectează Platforma",
"secretKey": "CHEIE SECRETĂ", "selectType": "Selectează tipul de plată",
"webhookSecret": "SEMNĂTURA CHEII WEBHOOK" "submit": "Trimite",
}, "type": "Tip",
"url": "URL", "updateSuccess": "Actualizat cu succes"
"wechatPay": "Plată WeChat"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "Оплата через Alipay", "AlipayF2F": "Alipay Лицом к Лицу",
"alipayf2f": { "EPay": "EPay",
"appId": "ID приложения Alipay", "Stripe": "Stripe",
"invoiceName": "Пользовательское название продукта", "applyForPayment": "Подать заявку на оплату",
"invoiceNameDescription": "Будет отображаться в счете Alipay", "balance": "Баланс",
"privateKey": "Приватный ключ Alipay", "batchDelete": "Пакетное удаление",
"publicKey": "Публичный ключ Alipay", "cancel": "Отмена",
"sandbox": "Режим песочницы", "config": "Конфигурация",
"sandboxDescription": "Включите режим песочницы для тестирования платежей" "configInfo": "Информация о конфигурации",
}, "configPlaceholder": "Пожалуйста, заполните предоставленную конфигурацию {field}",
"confirm": "Подтвердить",
"confirmDelete": "Подтвердить удаление",
"copy": "Копировать",
"copySuccess": "Успешно скопировано",
"create": "Добавить способ оплаты",
"createPayment": "Добавить способ оплаты",
"createSuccess": "Успешно создано",
"delete": "Удалить",
"deleteSuccess": "Успешно удалено",
"deleteWarning": "Вы уверены, что хотите удалить этот способ оплаты? Это действие нельзя отменить.",
"domain": "Домен",
"domainPlaceholder": "необязательно, например, {example}",
"edit": "Редактировать",
"editPayment": "Редактировать способ оплаты",
"enable": "Включить", "enable": "Включить",
"enableDescription": "Включить этот способ оплаты", "feeAmount": "Фиксированная сумма",
"epay": {
"key": "КЛЮЧ",
"pid": "PID",
"url": "URL"
},
"feeMode": "Способ оплаты", "feeMode": "Способ оплаты",
"feeModeDescription": "Способ взимания дополнительной комиссии",
"feeModeItems": ["Без комиссии", "Процент", "Фиксированная сумма", "Оба вышеуказанных"],
"feePercent": "Процентная комиссия (необязательно)", "feePercent": "Процентная комиссия (необязательно)",
"feePercentDescription": "Добавление комиссии к сумме заказа",
"fixedFee": "Фиксированная плата (по желанию)", "fixedFee": "Фиксированная плата (по желанию)",
"fixedFeeDescription": "Добавление фиксированной платы к сумме заказа", "handlingFee": "Плата за обработку",
"iconUrl": "URL значка (необязательно)", "icon": "Иконка",
"iconUrlDescription": "Используется для отображения на фронтенде", "iconPlaceholder": "Введите URL иконки",
"inputPlaceholder": "Пожалуйста, введите", "mark": "Идентификатор",
"key": "КЛЮЧ", "markPlaceholder": "Введите идентификатор способа оплаты",
"notifyUrl": "Пользовательский домен уведомлений (необязательно)", "name": "Название",
"notifyUrlDescription": "Уведомление шлюза будет отправлено на этот домен", "namePlaceholder": "Введите название способа оплаты",
"payForRecommendations": "Оплатить рекомендации", "nameRequired": "Название обязательно",
"pid": "PID", "noFee": "Без комиссии",
"saveSuccess": "Сохранение успешно", "paymentManagement": "Управление платежами",
"showName": "Показать имя", "percentFee": "Процент",
"showNameDescription": "Используется для отображения на фронтенде", "platform": "Платформа",
"stripe": { "searchPlaceholder": "Введите поисковые запросы",
"publicKey": "ОТКРЫТЫЙ КЛЮЧ", "selectPlatform": "Выберите платформу",
"secretKey": "СЕКРЕТНЫЙ КЛЮЧ", "selectType": "Выберите тип оплаты",
"webhookSecret": "СЕКРЕТ ПОДПИСИ ВЕБХУКА" "submit": "Отправить",
}, "type": "Тип",
"url": "URL", "updateSuccess": "Успешно обновлено"
"wechatPay": "WeChat Pay"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "ชำระเงินผ่านอาลีเพย์", "AlipayF2F": "Alipay แบบพบหน้า",
"alipayf2f": { "EPay": "EPay",
"appId": "รหัสแอปพลิเคชัน Alipay", "Stripe": "Stripe",
"invoiceName": "ชื่อผลิตภัณฑ์ที่กำหนดเอง", "applyForPayment": "ขอชำระเงิน",
"invoiceNameDescription": "จะแสดงในใบแจ้งหนี้ของ Alipay", "balance": "ยอดคงเหลือ",
"privateKey": "กุญแจส่วนตัวของ Alipay", "batchDelete": "ลบเป็นชุด",
"publicKey": "กุญแจสาธารณะของ Alipay", "cancel": "ยกเลิก",
"sandbox": "โหมดแซนด์บ็อกซ์", "config": "การตั้งค่า",
"sandboxDescription": "เปิดใช้งานโหมดแซนด์บ็อกซ์เพื่อทดสอบการชำระเงิน" "configInfo": "ข้อมูลการตั้งค่า",
}, "configPlaceholder": "กรุณากรอกการตั้งค่า {field} ที่ให้มา",
"confirm": "ยืนยัน",
"confirmDelete": "ยืนยันการลบ",
"copy": "คัดลอก",
"copySuccess": "คัดลอกสำเร็จ",
"create": "เพิ่มวิธีการชำระเงิน",
"createPayment": "เพิ่มวิธีการชำระเงิน",
"createSuccess": "สร้างสำเร็จ",
"delete": "ลบ",
"deleteSuccess": "ลบสำเร็จ",
"deleteWarning": "คุณแน่ใจหรือไม่ว่าต้องการลบวิธีการชำระเงินนี้? การกระทำนี้ไม่สามารถย้อนกลับได้",
"domain": "โดเมน",
"domainPlaceholder": "ไม่บังคับ เช่น {example}",
"edit": "แก้ไข",
"editPayment": "แก้ไขวิธีการชำระเงิน",
"enable": "เปิดใช้งาน", "enable": "เปิดใช้งาน",
"enableDescription": "เปิดใช้งานวิธีการชำระเงินนี้", "feeAmount": "จำนวนคงที่",
"epay": {
"key": "คีย์",
"pid": "พีไอดี",
"url": "ยูอาร์แอล"
},
"feeMode": "วิธีการคิดค่าบริการ", "feeMode": "วิธีการคิดค่าบริการ",
"feeModeDescription": "วิธีการคิดค่าธรรมเนียมเพิ่มเติม",
"feeModeItems": ["ไม่มีค่าธรรมเนียม", "เปอร์เซ็นต์", "จำนวนเงินคงที่", "ทั้งสองอย่าง"],
"feePercent": "เปอร์เซ็นต์ค่าธรรมเนียม (ไม่บังคับ)", "feePercent": "เปอร์เซ็นต์ค่าธรรมเนียม (ไม่บังคับ)",
"feePercentDescription": "เพิ่มค่าธรรมเนียมจากยอดสั่งซื้อ",
"fixedFee": "ค่าธรรมเนียมคงที่ (ไม่บังคับ)", "fixedFee": "ค่าธรรมเนียมคงที่ (ไม่บังคับ)",
"fixedFeeDescription": "เพิ่มค่าธรรมเนียมคงที่เหนือจำนวนเงินในคำสั่งซื้อ", "handlingFee": "ค่าธรรมเนียมการจัดการ",
"iconUrl": "URL ไอคอน (ไม่บังคับ)", "icon": "ไอคอน",
"iconUrlDescription": "ใช้สำหรับแสดงผลด้านหน้า", "iconPlaceholder": "กรอก URL ไอคอน",
"inputPlaceholder": "กรุณาใส่ข้อมูล", "mark": "ตัวระบุ",
"key": "กุญแจ", "markPlaceholder": "กรอกตัวระบุวิธีการชำระเงิน",
"notifyUrl": "โดเมนการแจ้งเตือนที่กำหนดเอง (ไม่บังคับ)", "name": "ชื่อ",
"notifyUrlDescription": "การแจ้งเตือนเกตเวย์จะถูกส่งไปยังโดเมนนี้", "namePlaceholder": "กรอกชื่อวิธีการชำระเงิน",
"payForRecommendations": "ชำระเงินสำหรับคำแนะนำ", "nameRequired": "ชื่อเป็นสิ่งจำเป็น",
"pid": "PID", "noFee": "ไม่มีค่าธรรมเนียม",
"saveSuccess": "บันทึกสำเร็จ", "paymentManagement": "การจัดการการชำระเงิน",
"showName": "แสดงชื่อ", "percentFee": "เปอร์เซ็นต์",
"showNameDescription": "ใช้สำหรับแสดงผลด้านหน้า", "platform": "แพลตฟอร์ม",
"stripe": { "searchPlaceholder": "กรอกคำค้นหา",
"publicKey": "PUBLIC KEY", "selectPlatform": "เลือกแพลตฟอร์ม",
"secretKey": "SECRET KEY", "selectType": "เลือกประเภทการชำระเงิน",
"webhookSecret": "WEBHOOK คีย์ลับ" "submit": "ส่ง",
}, "type": "ประเภท",
"url": "URL", "updateSuccess": "อัปเดตสำเร็จ"
"wechatPay": "วีแชทเพย์"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "Alipay ile ödeme", "AlipayF2F": "Alipay Yüz Yüze",
"alipayf2f": { "EPay": "EPay",
"appId": "Alipay Uygulama Kimliği", "Stripe": "Stripe",
"invoiceName": "Özel Ürün Adı", "applyForPayment": "Ödeme Başvurusu",
"invoiceNameDescription": "Alipay faturasına gösterilecektir", "balance": "Bakiye",
"privateKey": "Alipay Özel Anahtarı", "batchDelete": "Toplu Sil",
"publicKey": "Alipay Genel Anahtarı", "cancel": "İptal",
"sandbox": "Sandbox Modu", "config": "Yapılandırma",
"sandboxDescription": "Ödemeyi test etmek için sandbox modunu etkinleştirin" "configInfo": "Yapılandırma Bilgisi",
}, "configPlaceholder": "Lütfen sağlanan {field} yapılandırmasını doldurun",
"confirm": "Onayla",
"confirmDelete": "Silme İşlemini Onayla",
"copy": "Kopyala",
"copySuccess": "Başarıyla kopyalandı",
"create": "Ödeme Yöntemi Ekle",
"createPayment": "Ödeme Yöntemi Ekle",
"createSuccess": "Başarıyla oluşturuldu",
"delete": "Sil",
"deleteSuccess": "Başarıyla silindi",
"deleteWarning": "Bu ödeme yöntemini silmek istediğinize emin misiniz? Bu işlem geri alınamaz.",
"domain": "Alan Adı",
"domainPlaceholder": "isteğe bağlı, örn. {example}",
"edit": "Düzenle",
"editPayment": "Ödeme Yöntemini Düzenle",
"enable": "Etkinleştir", "enable": "Etkinleştir",
"enableDescription": "Bu ödeme yöntemini etkinleştir", "feeAmount": "Sabit Tutar",
"epay": {
"key": "ANAHTAR",
"pid": "PID",
"url": "URL"
},
"feeMode": "Ücretlendirme Modu", "feeMode": "Ücretlendirme Modu",
"feeModeDescription": "Ekstra ücretin tahsilat yöntemi",
"feeModeItems": ["Ücretsiz", "Yüzde", "Sabit Tutar", "Her İkisi"],
"feePercent": "Yüzde Ücreti (isteğe bağlı)", "feePercent": "Yüzde Ücreti (isteğe bağlı)",
"feePercentDescription": "Sipariş tutarının üzerine eklenen ücret",
"fixedFee": "Sabit Ücret (isteğe bağlı)", "fixedFee": "Sabit Ücret (isteğe bağlı)",
"fixedFeeDescription": "Sipariş tutarına ek olarak sabit ücret eklenir", "handlingFee": "İşlem Ücreti",
"iconUrl": "Simge URL'si (isteğe bağlı)", "icon": "Simge",
"iconUrlDescription": "Ön uçta görüntüleme için kullanılır", "iconPlaceholder": "Simge URL'sini girin",
"inputPlaceholder": "Lütfen girin", "mark": "Tanımlayıcı",
"key": "ANAHTAR", "markPlaceholder": "Ödeme yöntemi tanımlayıcısını girin",
"notifyUrl": "Özel bildirim alanı (isteğe bağlı)", "name": "İsim",
"notifyUrlDescription": "Ağ geçidi bildirimi bu alana gönderilecektir", "namePlaceholder": "Ödeme yöntemi adını girin",
"payForRecommendations": "Öneriler için ödeme yap", "nameRequired": "İsim gereklidir",
"pid": "PID", "noFee": "Ücret Yok",
"saveSuccess": "Başarıyla kaydedildi", "paymentManagement": "Ödeme Yönetimi",
"showName": "Görünen Ad", "percentFee": "Yüzde",
"showNameDescription": "Ön uçta görüntüleme için kullanılır", "platform": "Platform",
"stripe": { "searchPlaceholder": "Arama terimlerini girin",
"publicKey": "GENEL ANAHTAR", "selectPlatform": "Platform Seçin",
"secretKey": "GİZLİ ANAHTAR", "selectType": "Ödeme türünü seçin",
"webhookSecret": "WEBHOOK GİZLİ İMZA" "submit": "Gönder",
}, "type": "Tür",
"url": "URL", "updateSuccess": "Başarıyla güncellendi"
"wechatPay": "WeChat Pay"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "Оплата через Alipay", "AlipayF2F": "Alipay Face to Face",
"alipayf2f": { "EPay": "EPay",
"appId": "Ідентифікатор додатку Alipay", "Stripe": "Stripe",
"invoiceName": "Назва продукту на замовлення", "applyForPayment": "Подати заявку на оплату",
"invoiceNameDescription": "Буде відображено у рахунку Alipay", "balance": "Баланс",
"privateKey": "Приватний ключ Alipay", "batchDelete": "Пакетне видалення",
"publicKey": "Публічний ключ Alipay", "cancel": "Скасувати",
"sandbox": "Режим пісочниці", "config": "Налаштування",
"sandboxDescription": "Увімкніть режим пісочниці для тестування платежів" "configInfo": "Інформація про налаштування",
}, "configPlaceholder": "Будь ласка, заповніть надану конфігурацію {field}",
"confirm": "Підтвердити",
"confirmDelete": "Підтвердити видалення",
"copy": "Копіювати",
"copySuccess": "Успішно скопійовано",
"create": "Додати спосіб оплати",
"createPayment": "Додати спосіб оплати",
"createSuccess": "Успішно створено",
"delete": "Видалити",
"deleteSuccess": "Успішно видалено",
"deleteWarning": "Ви впевнені, що хочете видалити цей спосіб оплати? Цю дію не можна скасувати.",
"domain": "Домен",
"domainPlaceholder": "необов'язково, наприклад, {example}",
"edit": "Редагувати",
"editPayment": "Редагувати спосіб оплати",
"enable": "Увімкнути", "enable": "Увімкнути",
"enableDescription": "Увімкнути цей спосіб оплати", "feeAmount": "Фіксована сума",
"epay": {
"key": "КЛЮЧ",
"pid": "PID",
"url": "URL"
},
"feeMode": "Спосіб оплати", "feeMode": "Спосіб оплати",
"feeModeDescription": "Спосіб стягнення додаткової комісії",
"feeModeItems": ["Без комісії", "Відсоток", "Фіксована сума", "Обидва варіанти"],
"feePercent": "Відсоткова комісія (необов'язково)", "feePercent": "Відсоткова комісія (необов'язково)",
"feePercentDescription": "Додати комісію до суми замовлення",
"fixedFee": "Фіксована плата (необов'язково)", "fixedFee": "Фіксована плата (необов'язково)",
"fixedFeeDescription": "Додати фіксовану плату до суми замовлення", "handlingFee": "Плата за обробку",
"iconUrl": "URL значка (необов'язково)", "icon": "Іконка",
"iconUrlDescription": "Використовується для відображення на фронтенді", "iconPlaceholder": "Введіть URL іконки",
"inputPlaceholder": "Введіть, будь ласка", "mark": "Ідентифікатор",
"key": "КЛЮЧ", "markPlaceholder": "Введіть ідентифікатор способу оплати",
"notifyUrl": "Користувацька область сповіщень (необов'язково)", "name": "Назва",
"notifyUrlDescription": "Сповіщення шлюзу буде надіслано на цей домен", "namePlaceholder": "Введіть назву способу оплати",
"payForRecommendations": "Оплатити рекомендації", "nameRequired": "Назва є обов'язковою",
"pid": "PID", "noFee": "Без комісії",
"saveSuccess": "Збережено успішно", "paymentManagement": "Управління платежами",
"showName": "Показати ім'я", "percentFee": "Відсоток",
"showNameDescription": "Використовується для відображення на фронтенді", "platform": "Платформа",
"stripe": { "searchPlaceholder": "Введіть пошукові терміни",
"publicKey": "ПУБЛІЧНИЙ КЛЮЧ", "selectPlatform": "Виберіть платформу",
"secretKey": "СЕКРЕТНИЙ КЛЮЧ", "selectType": "Виберіть тип оплати",
"webhookSecret": "ПІДПИС ВЕБХУКА" "submit": "Надіслати",
}, "type": "Тип",
"url": "URL", "updateSuccess": "Успішно оновлено"
"wechatPay": "WeChat Pay"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "Thanh toán qua Alipay", "AlipayF2F": "Alipay Gặp Mặt",
"alipayf2f": { "EPay": "EPay",
"appId": "ID ứng dụng Alipay", "Stripe": "Stripe",
"invoiceName": "Tên sản phẩm tùy chỉnh", "applyForPayment": "Đăng Ký Thanh Toán",
"invoiceNameDescription": "Sẽ hiển thị trên hóa đơn Alipay", "balance": "Số Dư",
"privateKey": "Khóa riêng Alipay", "batchDelete": "Xóa Theo Lô",
"publicKey": "Khóa công khai Alipay", "cancel": "Hủy",
"sandbox": "Chế độ sandbox", "config": "Cấu Hình",
"sandboxDescription": "Kích hoạt chế độ sandbox để kiểm tra thanh toán" "configInfo": "Thông Tin Cấu Hình",
}, "configPlaceholder": "Vui lòng điền vào cấu hình {field} đã cung cấp",
"confirm": "Xác Nhận",
"confirmDelete": "Xác Nhận Xóa",
"copy": "Sao Chép",
"copySuccess": "Sao chép thành công",
"create": "Thêm Phương Thức Thanh Toán",
"createPayment": "Thêm Phương Thức Thanh Toán",
"createSuccess": "Tạo thành công",
"delete": "Xóa",
"deleteSuccess": "Xóa thành công",
"deleteWarning": "Bạn có chắc chắn muốn xóa phương thức thanh toán này không? Hành động này không thể hoàn tác.",
"domain": "Miền",
"domainPlaceholder": "tùy chọn, ví dụ: {example}",
"edit": "Chỉnh Sửa",
"editPayment": "Chỉnh Sửa Phương Thức Thanh Toán",
"enable": "Kích hoạt", "enable": "Kích hoạt",
"enableDescription": "Kích hoạt phương thức thanh toán này", "feeAmount": "Số Tiền Cố Định",
"epay": {
"key": "KHÓA",
"pid": "PID",
"url": "URL"
},
"feeMode": "Phương thức tính phí", "feeMode": "Phương thức tính phí",
"feeModeDescription": "Cách tính phí bổ sung",
"feeModeItems": ["Không phí dịch vụ", "Phần trăm", "Số tiền cố định", "Hai loại trên"],
"feePercent": "Phí phần trăm (tùy chọn)", "feePercent": "Phí phần trăm (tùy chọn)",
"feePercentDescription": "Thêm phí trên số tiền đơn hàng",
"fixedFee": "Phí cố định (tùy chọn)", "fixedFee": "Phí cố định (tùy chọn)",
"fixedFeeDescription": "Thêm phí cố định vào trên số tiền đơn hàng", "handlingFee": "Phí Xử Lý",
"iconUrl": "URL biểu tượng (tùy chọn)", "icon": "Biểu Tượng",
"iconUrlDescription": "Dùng để hiển thị phía trước", "iconPlaceholder": "Nhập URL biểu tượng",
"inputPlaceholder": "Vui lòng nhập", "mark": "Định Danh",
"key": "KEY", "markPlaceholder": "Nhập định danh phương thức thanh toán",
"notifyUrl": "Miền thông báo tùy chỉnh (tùy chọn)", "name": "Tên",
"notifyUrlDescription": "Thông báo cổng sẽ được gửi đến miền này", "namePlaceholder": "Nhập tên phương thức thanh toán",
"payForRecommendations": "Thanh toán cho đề xuất", "nameRequired": "Tên là bắt buộc",
"pid": "PID", "noFee": "Không Có Phí",
"saveSuccess": "Lưu thành công", "paymentManagement": "Quản Lý Thanh Toán",
"showName": "Hiển thị tên", "percentFee": "Phần Trăm",
"showNameDescription": "Dùng để hiển thị phía trước", "platform": "Nền Tảng",
"stripe": { "searchPlaceholder": "Nhập từ khóa tìm kiếm",
"publicKey": "KHÓA CÔNG KHAI", "selectPlatform": "Chọn Nền Tảng",
"secretKey": "KHÓA BÍ MẬT", "selectType": "Chọn loại thanh toán",
"webhookSecret": "CHỮ KÝ KHÓA WEBHOOK" "submit": "Gửi",
}, "type": "Loại",
"url": "URL", "updateSuccess": "Cập nhật thành công"
"wechatPay": "Thanh toán WeChat"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "支付宝支付", "AlipayF2F": "支付宝面对面",
"alipayf2f": { "EPay": "电子支付",
"appId": "支付宝应用ID", "Stripe": "Stripe",
"invoiceName": "自定义产品名称", "applyForPayment": "申请付款",
"invoiceNameDescription": "将显示在支付宝账单中", "balance": "余额",
"privateKey": "支付宝私钥", "batchDelete": "批量删除",
"publicKey": "支付宝公钥", "cancel": "取消",
"sandbox": "沙箱模式", "config": "配置",
"sandboxDescription": "启用沙箱模式以测试支付" "configInfo": "配置信息",
}, "configPlaceholder": "请填写提供的 {field} 配置",
"confirm": "确认",
"confirmDelete": "确认删除",
"copy": "复制",
"copySuccess": "复制成功",
"create": "添加支付方式",
"createPayment": "添加支付方式",
"createSuccess": "创建成功",
"delete": "删除",
"deleteSuccess": "删除成功",
"deleteWarning": "您确定要删除此支付方式吗?此操作无法撤销。",
"domain": "域名",
"domainPlaceholder": "可选,例如 {example}",
"edit": "编辑",
"editPayment": "编辑支付方式",
"enable": "启用", "enable": "启用",
"enableDescription": "启用此支付方式", "feeAmount": "固定金额",
"epay": {
"key": "KEY",
"pid": "PID",
"url": "URL"
},
"feeMode": "收费方式", "feeMode": "收费方式",
"feeModeDescription": "额外手续费的收费方式", "feePercent": "百分比费用",
"feeModeItems": ["无手续费", "百分比", "固定金额", "以上两种"], "fixedFee": "固定费用",
"feePercent": "百分比费用(可选)", "handlingFee": "手续费",
"feePercentDescription": "在订单金额之上添加费用", "icon": "图标",
"fixedFee": "固定费用(可选)", "iconPlaceholder": "输入图标 URL",
"fixedFeeDescription": "在订单金额之上添加固定费用", "mark": "标识符",
"iconUrl": "图标 URL可选", "markPlaceholder": "输入支付方式标识符",
"iconUrlDescription": "用于前端显示", "name": "名称",
"inputPlaceholder": "请输入", "namePlaceholder": "输入支付方式名称",
"key": "KEY", "nameRequired": "名称是必填项",
"notifyUrl": "自定义通知域(可选)", "noFee": "无费用",
"notifyUrlDescription": "网关通知将发送到此域", "paymentManagement": "支付管理",
"payForRecommendations": "支付推荐", "percentFee": "百分比",
"pid": "PID", "platform": "平台",
"saveSuccess": "保存成功", "searchPlaceholder": "输入搜索词",
"showName": "显示名称", "selectPlatform": "选择平台",
"showNameDescription": "用于前端显示", "selectType": "选择支付类型",
"stripe": { "submit": "提交",
"publicKey": "PUBLIC KEY", "type": "类型",
"secretKey": "SECRET KEY", "updateSuccess": "更新成功"
"webhookSecret": "WEBHOOK 密钥签名"
},
"url": "URL",
"wechatPay": "微信支付"
} }

View File

@ -1,44 +1,49 @@
{ {
"aliPay": "支付寶支付", "AlipayF2F": "支付寶面對面",
"alipayf2f": { "EPay": "電子支付",
"appId": "支付寶應用ID", "Stripe": "Stripe",
"invoiceName": "自訂產品名稱", "applyForPayment": "申請付款",
"invoiceNameDescription": "將顯示在支付寶賬單中", "balance": "餘額",
"privateKey": "支付寶私鑰", "batchDelete": "批量刪除",
"publicKey": "支付寶公鑰", "cancel": "取消",
"sandbox": "沙箱模式", "config": "配置",
"sandboxDescription": "啟用沙箱模式以測試支付" "configInfo": "配置資訊",
}, "configPlaceholder": "請填寫提供的 {field} 配置",
"confirm": "確認",
"confirmDelete": "確認刪除",
"copy": "複製",
"copySuccess": "複製成功",
"create": "新增付款方式",
"createPayment": "新增付款方式",
"createSuccess": "創建成功",
"delete": "刪除",
"deleteSuccess": "刪除成功",
"deleteWarning": "您確定要刪除此付款方式嗎?此操作無法撤銷。",
"domain": "域名",
"domainPlaceholder": "可選,例如 {example}",
"edit": "編輯",
"editPayment": "編輯付款方式",
"enable": "啟用", "enable": "啟用",
"enableDescription": "啟用此支付方式", "feeAmount": "固定金額",
"epay": {
"key": "KEY",
"pid": "PID",
"url": "URL"
},
"feeMode": "收費方式", "feeMode": "收費方式",
"feeModeDescription": "額外手續費的收費方式",
"feeModeItems": ["無手續費", "百分比", "固定金額", "以上兩種"],
"feePercent": "百分比費用(可選)", "feePercent": "百分比費用(可選)",
"feePercentDescription": "在訂單金額之上添加費用",
"fixedFee": "固定費用(可選)", "fixedFee": "固定費用(可選)",
"fixedFeeDescription": "在訂單金額之上添加固定費用", "handlingFee": "手續費",
"iconUrl": "圖示 URL可選", "icon": "圖標",
"iconUrlDescription": "用於前端顯示", "iconPlaceholder": "輸入圖標網址",
"inputPlaceholder": "請輸入", "mark": "標識",
"key": "KEY", "markPlaceholder": "輸入付款方式標識",
"notifyUrl": "自訂通知域(可選)", "name": "名稱",
"notifyUrlDescription": "閘道通知將發送到此網域", "namePlaceholder": "輸入付款方式名稱",
"payForRecommendations": "支付推薦", "nameRequired": "名稱為必填",
"pid": "PID", "noFee": "無費用",
"saveSuccess": "儲存成功", "paymentManagement": "付款管理",
"showName": "顯示名稱", "percentFee": "百分比",
"showNameDescription": "用於前端顯示", "platform": "平台",
"stripe": { "searchPlaceholder": "輸入搜索詞",
"publicKey": "PUBLIC KEY", "selectPlatform": "選擇平台",
"secretKey": "SECRET KEY", "selectType": "選擇付款類型",
"webhookSecret": "WEBHOOK 密鑰簽名" "submit": "提交",
}, "type": "類型",
"url": "URL", "updateSuccess": "更新成功"
"wechatPay": "微信支付"
} }

View File

@ -2,20 +2,12 @@
/* eslint-disable */ /* eslint-disable */
import request from '@/utils/request'; import request from '@/utils/request';
/** Get alipay f2f payment config GET /v1/admin/payment/alipay_f2f */ /** Update Payment Method PUT /v1/admin/payment/ */
export async function getAlipayF2FPaymentConfig(options?: { [key: string]: any }) { export async function updatePaymentMethod(
return request<API.Response & { data?: API.PaymentConfig }>('/v1/admin/payment/alipay_f2f', { body: API.UpdatePaymentMethodRequest,
method: 'GET',
...(options || {}),
});
}
/** Update alipay f2f payment config PUT /v1/admin/payment/alipay_f2f */
export async function updateAlipayF2FPaymentConfig(
body: API.UpdateAlipayF2fRequest,
options?: { [key: string]: any }, options?: { [key: string]: any },
) { ) {
return request<API.Response & { data?: any }>('/v1/admin/payment/alipay_f2f', { return request<API.Response & { data?: API.PaymentConfig }>('/v1/admin/payment/', {
method: 'PUT', method: 'PUT',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
@ -25,85 +17,58 @@ export async function updateAlipayF2FPaymentConfig(
}); });
} }
/** Get all payment config GET /v1/admin/payment/all */ /** Create Payment Method POST /v1/admin/payment/ */
export async function getAllPaymentConfig(options?: { [key: string]: any }) { export async function createPaymentMethod(
return request<API.Response & { data?: API.GetAllPaymentConfigResponse }>( body: API.CreatePaymentMethodRequest,
'/v1/admin/payment/all', options?: { [key: string]: any },
) {
return request<API.Response & { data?: API.PaymentConfig }>('/v1/admin/payment/', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** Delete Payment Method DELETE /v1/admin/payment/ */
export async function deletePaymentMethod(
body: API.DeletePaymentMethodRequest,
options?: { [key: string]: any },
) {
return request<API.Response & { data?: any }>('/v1/admin/payment/', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** Get Payment Method List GET /v1/admin/payment/list */
export async function getPaymentMethodList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetPaymentMethodListParams,
options?: { [key: string]: any },
) {
return request<API.Response & { data?: API.GetPaymentMethodListResponse }>(
'/v1/admin/payment/list',
{ {
method: 'GET', method: 'GET',
params: {
...params,
},
...(options || {}), ...(options || {}),
}, },
); );
} }
/** Get epay payment config GET /v1/admin/payment/epay */ /** Get supported payment platform GET /v1/admin/payment/platform */
export async function getEpayPaymentConfig(options?: { [key: string]: any }) { export async function getPaymentPlatform(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.PaymentConfig }>('/v1/admin/payment/epay', { return request<API.Response & { data?: API.PlatformResponse }>('/v1/admin/payment/platform', {
method: 'GET', method: 'GET',
...(options || {}), ...(options || {}),
}); });
} }
/** Update epay payment config PUT /v1/admin/payment/epay */
export async function updateEpayPaymentConfig(
body: API.UpdateEpayRequest,
options?: { [key: string]: any },
) {
return request<API.Response & { data?: any }>('/v1/admin/payment/epay', {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** Get stripe alipay payment config GET /v1/admin/payment/stripe_alipay */
export async function getStripeAlipayPaymentConfig(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.PaymentConfig }>('/v1/admin/payment/stripe_alipay', {
method: 'GET',
...(options || {}),
});
}
/** Update stripe alipay payment config PUT /v1/admin/payment/stripe_alipay */
export async function updateStripeAlipayPaymentConfig(
body: API.UpdateStripeRequest,
options?: { [key: string]: any },
) {
return request<API.Response & { data?: any }>('/v1/admin/payment/stripe_alipay', {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** Get stripe wechat pay payment config GET /v1/admin/payment/stripe_wechat_pay */
export async function getStripeWeChatPayPaymentConfig(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.PaymentConfig }>(
'/v1/admin/payment/stripe_wechat_pay',
{
method: 'GET',
...(options || {}),
},
);
}
/** Update stripe wechat pay payment config PUT /v1/admin/payment/stripe_wechat_pay */
export async function updateStripeWeChatPayPaymentConfig(
body: API.UpdateStripeRequest,
options?: { [key: string]: any },
) {
return request<API.Response & { data?: any }>('/v1/admin/payment/stripe_wechat_pay', {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}

View File

@ -13,12 +13,8 @@ declare namespace API {
updated_at: number; updated_at: number;
}; };
type AlipayF2FConfig = { type AlipayNotifyResponse = {
app_id: string; return_code: string;
private_key: string;
public_key: string;
invoice_name: string;
sandbox: boolean;
}; };
type Announcement = { type Announcement = {
@ -234,6 +230,18 @@ declare namespace API {
subscribe_id?: number; subscribe_id?: number;
}; };
type CreatePaymentMethodRequest = {
name: string;
platform: string;
icon?: string;
domain?: string;
config: Record<string, any>;
fee_mode: number;
fee_percent?: number;
fee_amount?: number;
enable: boolean;
};
type CreateRuleGroupRequest = { type CreateRuleGroupRequest = {
name: string; name: string;
icon: string; icon: string;
@ -341,6 +349,10 @@ declare namespace API {
id: number; id: number;
}; };
type DeletePaymentMethodRequest = {
id: number;
};
type DeleteRuleGroupRequest = { type DeleteRuleGroupRequest = {
id: number; id: number;
}; };
@ -387,10 +399,17 @@ declare namespace API {
domain_suffix_list: string; domain_suffix_list: string;
}; };
type EpayConfig = { type EPayNotifyRequest = {
pid: string; pid: number;
url: string; trade_no: string;
key: string; out_trade_no: string;
type: string;
name: string;
money: string;
trade_status: string;
param: string;
sign: string;
sign_type: string;
}; };
type Follow = { type Follow = {
@ -429,10 +448,6 @@ declare namespace API {
list: Ads[]; list: Ads[];
}; };
type GetAllPaymentConfigResponse = {
list: PaymentConfig[];
};
type GetAnnouncementListParams = { type GetAnnouncementListParams = {
page: number; page: number;
size: number; size: number;
@ -614,6 +629,27 @@ declare namespace API {
list: Order[]; list: Order[];
}; };
type GetPaymentMethodListParams = {
page: number;
size: number;
platform?: string;
search?: string;
enable?: boolean;
};
type GetPaymentMethodListRequest = {
page: number;
size: number;
platform?: string;
search?: string;
enable?: boolean;
};
type GetPaymentMethodListResponse = {
total: number;
list: PaymentMethodDetail[];
};
type GetRuleGroupResponse = { type GetRuleGroupResponse = {
total: number; total: number;
list: ServerRuleGroup[]; list: ServerRuleGroup[];
@ -927,7 +963,7 @@ declare namespace API {
type PaymenMethod = { type PaymenMethod = {
id: number; id: number;
name: string; name: string;
mark: string; platform: string;
icon: string; icon: string;
fee_mode: number; fee_mode: number;
fee_percent: number; fee_percent: number;
@ -937,7 +973,7 @@ declare namespace API {
type PaymentConfig = { type PaymentConfig = {
id: number; id: number;
name: string; name: string;
mark: string; platform: string;
icon?: string; icon?: string;
domain?: string; domain?: string;
config: Record<string, any>; config: Record<string, any>;
@ -947,6 +983,20 @@ declare namespace API {
enable: boolean; enable: boolean;
}; };
type PaymentMethodDetail = {
id: number;
name: string;
platform: string;
icon: string;
domain: string;
config: Record<string, any>;
fee_mode: number;
fee_percent: number;
fee_amount: number;
enable: boolean;
notify_url: string;
};
type PlatformInfo = { type PlatformInfo = {
platform: string; platform: string;
platform_url: string; platform_url: string;
@ -989,7 +1039,7 @@ declare namespace API {
type PurchaseOrderRequest = { type PurchaseOrderRequest = {
subscribe_id: number; subscribe_id: number;
quantity: number; quantity: number;
payment: string; payment: number;
coupon?: string; coupon?: string;
}; };
@ -1049,7 +1099,7 @@ declare namespace API {
type RechargeOrderRequest = { type RechargeOrderRequest = {
amount: number; amount: number;
payment: string; payment: number;
}; };
type RechargeOrderResponse = { type RechargeOrderResponse = {
@ -1070,7 +1120,7 @@ declare namespace API {
type RenewalOrderRequest = { type RenewalOrderRequest = {
user_subscribe_id: number; user_subscribe_id: number;
quantity: number; quantity: number;
payment: string; payment: number;
coupon?: string; coupon?: string;
}; };
@ -1080,7 +1130,7 @@ declare namespace API {
type ResetTrafficOrderRequest = { type ResetTrafficOrderRequest = {
user_subscribe_id: number; user_subscribe_id: number;
payment: string; payment: number;
}; };
type ResetTrafficOrderResponse = { type ResetTrafficOrderResponse = {
@ -1205,13 +1255,6 @@ declare namespace API {
sort: number; sort: number;
}; };
type StripeConfig = {
public_key: string;
secret_key: string;
webhook_secret: string;
payment: string;
};
type StripePayment = { type StripePayment = {
method: string; method: string;
client_secret: string; client_secret: string;
@ -1383,19 +1426,6 @@ declare namespace API {
status: number; status: number;
}; };
type UpdateAlipayF2fRequest = {
id: number;
name: string;
mark: string;
icon?: string;
domain?: string;
config: AlipayF2FConfig;
fee_mode: number;
fee_percent?: number;
fee_amount?: number;
enable: boolean;
};
type UpdateAnnouncementEnableRequest = { type UpdateAnnouncementEnableRequest = {
id: number; id: number;
enable: boolean; enable: boolean;
@ -1459,19 +1489,6 @@ declare namespace API {
show: boolean; show: boolean;
}; };
type UpdateEpayRequest = {
id: number;
name: string;
mark: string;
icon?: string;
domain?: string;
config: EpayConfig;
fee_mode: number;
fee_percent?: number;
fee_amount?: number;
enable: boolean;
};
type UpdateNodeGroupRequest = { type UpdateNodeGroupRequest = {
id: number; id: number;
name: string; name: string;
@ -1503,6 +1520,19 @@ declare namespace API {
trade_no?: string; trade_no?: string;
}; };
type UpdatePaymentMethodRequest = {
id: number;
name: string;
platform: string;
icon?: string;
domain?: string;
config: Record<string, any>;
fee_mode: number;
fee_percent?: number;
fee_amount?: number;
enable: boolean;
};
type UpdateRuleGroupRequest = { type UpdateRuleGroupRequest = {
id: number; id: number;
name: string; name: string;
@ -1511,19 +1541,6 @@ declare namespace API {
enable: boolean; enable: boolean;
}; };
type UpdateStripeRequest = {
id: number;
name: string;
mark: string;
icon?: string;
domain?: string;
config: StripeConfig;
fee_mode: number;
fee_percent?: number;
fee_amount?: number;
enable: boolean;
};
type UpdateSubscribeGroupRequest = { type UpdateSubscribeGroupRequest = {
id: number; id: number;
name: string; name: string;

View File

@ -2,6 +2,21 @@
/* eslint-disable */ /* eslint-disable */
import request from '@/utils/request'; import request from '@/utils/request';
/** Get Ads GET /v1/common/ads */
export async function getAds(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetAdsParams,
options?: { [key: string]: any },
) {
return request<API.Response & { data?: API.GetAdsResponse }>('/v1/common/ads', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** Get Tos Content GET /v1/common/application */ /** Get Tos Content GET /v1/common/application */
export async function getApplication(options?: { [key: string]: any }) { export async function getApplication(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.GetAppcationResponse }>('/v1/common/application', { return request<API.Response & { data?: API.GetAppcationResponse }>('/v1/common/application', {

View File

@ -13,6 +13,10 @@ declare namespace API {
updated_at: number; updated_at: number;
}; };
type AlipayNotifyResponse = {
return_code: string;
};
type Announcement = { type Announcement = {
id: number; id: number;
title: string; title: string;
@ -149,6 +153,19 @@ declare namespace API {
domain_suffix_list: string; domain_suffix_list: string;
}; };
type EPayNotifyRequest = {
pid: number;
trade_no: string;
out_trade_no: string;
type: string;
name: string;
money: string;
trade_status: string;
param: string;
sign: string;
sign_type: string;
};
type Follow = { type Follow = {
id: number; id: number;
ticket_id: number; ticket_id: number;
@ -158,6 +175,20 @@ declare namespace API {
created_at: number; created_at: number;
}; };
type GetAdsParams = {
device: string;
position: string;
};
type GetAdsRequest = {
device: string;
position: string;
};
type GetAdsResponse = {
list: Ads[];
};
type GetAppcationResponse = { type GetAppcationResponse = {
config: ApplicationConfig; config: ApplicationConfig;
applications: ApplicationResponseInfo[]; applications: ApplicationResponseInfo[];
@ -176,6 +207,7 @@ declare namespace API {
subscribe: SubscribeConfig; subscribe: SubscribeConfig;
verify_code: PubilcVerifyCodeConfig; verify_code: PubilcVerifyCodeConfig;
oauth_methods: string[]; oauth_methods: string[];
web_ad: boolean;
}; };
type GetStatResponse = { type GetStatResponse = {
@ -331,7 +363,7 @@ declare namespace API {
type PaymenMethod = { type PaymenMethod = {
id: number; id: number;
name: string; name: string;
mark: string; platform: string;
icon: string; icon: string;
fee_mode: number; fee_mode: number;
fee_percent: number; fee_percent: number;
@ -341,7 +373,7 @@ declare namespace API {
type PaymentConfig = { type PaymentConfig = {
id: number; id: number;
name: string; name: string;
mark: string; platform: string;
icon?: string; icon?: string;
domain?: string; domain?: string;
config: Record<string, any>; config: Record<string, any>;
@ -351,6 +383,30 @@ declare namespace API {
enable: boolean; enable: boolean;
}; };
type PaymentMethodDetail = {
id: number;
name: string;
platform: string;
icon: string;
domain: string;
config: Record<string, any>;
fee_mode: number;
fee_percent: number;
fee_amount: number;
enable: boolean;
notify_url: string;
};
type PlatformInfo = {
platform: string;
platform_url: string;
platform_field_description: Record<string, any>;
};
type PlatformResponse = {
list: PlatformInfo[];
};
type PreOrderResponse = { type PreOrderResponse = {
price: number; price: number;
amount: number; amount: number;
@ -383,7 +439,7 @@ declare namespace API {
type PurchaseOrderRequest = { type PurchaseOrderRequest = {
subscribe_id: number; subscribe_id: number;
quantity: number; quantity: number;
payment: string; payment: number;
coupon?: string; coupon?: string;
}; };
@ -443,7 +499,7 @@ declare namespace API {
type RechargeOrderRequest = { type RechargeOrderRequest = {
amount: number; amount: number;
payment: string; payment: number;
}; };
type RechargeOrderResponse = { type RechargeOrderResponse = {
@ -464,7 +520,7 @@ declare namespace API {
type RenewalOrderRequest = { type RenewalOrderRequest = {
user_subscribe_id: number; user_subscribe_id: number;
quantity: number; quantity: number;
payment: string; payment: number;
coupon?: string; coupon?: string;
}; };
@ -481,7 +537,7 @@ declare namespace API {
type ResetTrafficOrderRequest = { type ResetTrafficOrderRequest = {
user_subscribe_id: number; user_subscribe_id: number;
payment: string; payment: number;
}; };
type ResetTrafficOrderResponse = { type ResetTrafficOrderResponse = {