Skip to content

Commit

Permalink
fix: update the message
Browse files Browse the repository at this point in the history
  • Loading branch information
shadrak98 committed Jun 21, 2024
1 parent adc526f commit e44acd9
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 11 deletions.
34 changes: 25 additions & 9 deletions dashboard/src2/components/AlertMandateInfo.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
<template>
<AlertBanner
title="Due to RBI regulations, we need to collect a mandate/consent from you to process payments from your card. Please remove and add your card again. Contact support for any further details."
type="warning"
>
<Button class="ml-auto shrink-0" route="/billing" variant="outline">
Update Card
</Button>
</AlertBanner>
<div>
<AlertBanner
title="Due to RBI regulations, we need to collect a mandate/consent from you to process payments from your card."
type="warning"
>
<Button
class="ml-auto shrink-0"
@click="showAddCardDialog = true"
variant="outline"
>
Update Card
</Button>
</AlertBanner>
<StripeCardDialog
v-model="showAddCardDialog"
message="Due to RBI regulations, we need to collect mandate/consent from Indian customers to process auto debit from your card. Please add your card again. Contact [email protected] for further details."
/>
</div>
</template>
<script>
import AlertBanner from './AlertBanner.vue';
import StripeCardDialog from './StripeCardDialog.vue';
export default {
name: 'AlertMandateInfo',
components: { AlertBanner }
components: { AlertBanner, StripeCardDialog },
data() {
return {
showAddCardDialog: false
};
}
};
</script>
5 changes: 4 additions & 1 deletion dashboard/src2/components/StripeCardDialog.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<template>
<Dialog v-model="show" :options="{ title: 'Add new card' }">
<template #body-content>
<p class="text-sm mb-5 text-gray-700" v-if="message">
{{ message }}
</p>
<StripeCard2 @complete="show = false" />
</template>
</Dialog>
Expand All @@ -9,7 +12,7 @@
import StripeCard from './StripeCard.vue';
export default {
name: 'StripeCardDialog',
props: ['modelValue'],
props: ['modelValue', 'message'],
emits: ['update:modelValue'],
components: {
StripeCard2: StripeCard
Expand Down
7 changes: 6 additions & 1 deletion press/press/doctype/team/team.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,14 @@
"group": "Marketplace",
"link_doctype": "Marketplace Publisher Profile",
"link_fieldname": "team"
},
{
"group": "Billing",
"link_doctype": "Stripe Payment Method",
"link_fieldname": "team"
}
],
"modified": "2024-04-04 22:20:46.667608",
"modified": "2024-06-21 19:58:16.088797",
"modified_by": "Administrator",
"module": "Press",
"name": "Team",
Expand Down

0 comments on commit e44acd9

Please sign in to comment.