Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #591 from beabee-communityrm/feat/stripe-link
Browse files Browse the repository at this point in the history
feat: show something for Stripe Link
  • Loading branch information
wpf500 authored May 9, 2024
2 parents ca9d028 + 405a772 commit c76e748
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"dependencies": {
"@appsignal/javascript": "^1.3.28",
"@beabee/beabee-common": "^0.20.7",
"@beabee/beabee-common": "^0.20.10",
"@captchafox/vue": "^1.1.0",
"@fontsource/fira-sans": "^5.0.18",
"@fontsource/fira-sans-condensed": "^5.0.8",
Expand Down
8 changes: 5 additions & 3 deletions src/components/payment-method/PaymentMethod.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ const description = computed(() => {
const source = props.source;
switch (source.method) {
case PaymentMethod.StripeCard:
return `•••• •••• •••• ${source.last4}, ${String(
source.expiryMonth
).padStart(2, '0')}/${source.expiryYear}`;
return source.isLink
? source.email
: `•••• •••• •••• ${source.last4}, ${String(
source.expiryMonth
).padStart(2, '0')}/${source.expiryYear}`;
case PaymentMethod.StripeBACS:
return `${source.sortCode} ••••••••••${source.last4}`;
case PaymentMethod.StripeSEPA:
Expand Down

0 comments on commit c76e748

Please sign in to comment.