Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"@nuxt/eslint-config": "^0.5.7",
"@nuxt/module-builder": "^0.8.4",
"@nuxt/test-utils": "3.14.2",
"@paypal/paypal-js": "^8.1.2",
"@types/semver": "^7.5.8",
"@typescript-eslint/typescript-estree": "^8.7.0",
"@unhead/schema": "1.11.6",
Expand Down
35 changes: 35 additions & 0 deletions playground/pages/third-parties/paypal/nuxt-scripts.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<template>
<div>
<h2>Buttons</h2>
<ScriptPaypalButtons
class="border border-gray-200 dark:border-gray-800 rounded-lg"
:button-options="buttonOptions"
:disabled="disabled"
/>
<label>
Disabled
<input v-model="disabled" type="checkbox">
</label>
<h2>Marks</h2>
<ScriptPaypalMarks />
<h2>Messages</h2>
<ScriptPaypalMessages :messages-options="{ style: { color: 'white-no-border', layout: 'flex' } }" />
</div>
</template>

<script setup lang="ts">
import { computed, ref } from 'vue'
import type { PayPalButtonsComponentOptions } from '@paypal/paypal-js'

const buttonOptions = computed(() => ({
style: {
layout: 'vertical',
color: 'blue',
shape: 'rect',
label: 'paypal',
},
message: { amount: '10.00' },
} satisfies PayPalButtonsComponentOptions))

const disabled = ref(false)
</script>
118 changes: 110 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading