Files
edgeKey/pages/admin/payments/forms/StripeForm.vue
2026-04-25 18:32:25 +08:00

25 lines
1.3 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<div class="space-y-4">
<label class="flex flex-col gap-1.5">
<span class="label-text font-medium">Secret Key</span>
<SecretInput v-model="modelValue.stripeSecretKey" placeholder="sk_live_..." />
</label>
<label class="flex flex-col gap-1.5">
<span class="label-text font-medium">Webhook Secret</span>
<SecretInput v-model="modelValue.stripeWebhookSecret" placeholder="whsec_..." />
<p class="text-xs text-base-content/60">
<a href="https://dashboard.stripe.com/apikeys" target="_blank" class="link">Stripe Dashboard</a> 获取 API 密钥Webhook Secret <a href="https://dashboard.stripe.com/webhooks" target="_blank" class="link">Webhooks</a> 页面创建端点后获取回调事件请选择 <code>checkout.session.completed</code>
</p>
</label>
<label class="flex flex-col gap-1.5">
<span class="label-text font-medium">货币代码</span>
<input v-model="modelValue.stripeCurrency" class="input input-bordered w-full" placeholder="cny" />
<p class="text-xs text-base-content/60">ISO 4217 货币代码 cnyusdhkd默认 cny</p>
</label>
</div>
</template>
<script setup lang="ts">
import SecretInput from "../../../../components/SecretInput.vue";
defineProps<{ modelValue: Record<string, any> }>();
</script>