2
0

feat: paypal支付

This commit is contained in:
caiyuchao
2025-04-23 16:00:21 +08:00
parent 092864e661
commit 3cbaebb5d3
9 changed files with 167 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<script setup lang="ts">
import { onMounted } from 'vue';
import { constructPaypalBtn } from '@/utils/paypal';
interface Props {
orderInfo: {
orderId: string;
orderType: number; // 0: 购买套餐, 1: 余额充值
orderAmount: number;
};
}
const props = defineProps<Props>();
onMounted(async()=>{
await constructPaypalBtn(props.orderInfo.orderId, "USD");
})
</script>
<template>
<div id="paypal-buttons"></div>
</template>
<style scoped>
</style>