mirror of
https://github.com/34892002/edgeKey.git
synced 2026-05-06 23:33:10 +08:00
25 lines
1.3 KiB
Vue
25 lines
1.3 KiB
Vue
<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 货币代码,如 cny、usd、hkd,默认 cny</p>
|
||
</label>
|
||
</div>
|
||
</template>
|
||
|
||
<script setup lang="ts">
|
||
import SecretInput from "../../../../components/SecretInput.vue";
|
||
defineProps<{ modelValue: Record<string, any> }>();
|
||
</script> |