diff --git a/src/locales/en.json b/src/locales/en.json index ee5c76b..c018be4 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -124,5 +124,21 @@ "amount": "amount", "message": "Message (optional)", "send": "send" + }, + "paymentConfirmation": { + "success": { + "title": "Payment completed", + "message": "Your payment was successful. Thank you for supporting ", + "usernameDefault": "this user.", + "receipt": "A receipt has been sent to your email address.", + "continue": "Continue" + }, + "failure": { + "title": "Payment cancelled", + "message": "The payment was cancelled. If you did not intend to cancel, please try again.", + "thanks": "Thank you for supporting", + "tryAgain": "Try again", + "return": "Return to the profile of " + } } -} \ No newline at end of file +} diff --git a/src/locales/fr.json b/src/locales/fr.json index d0f4e65..e6ffe82 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -124,5 +124,21 @@ "amount": "Montant", "message": "Message (facultatif)", "send": "Envoyez" + }, + "paymentConfirmation": { + "success": { + "title": "Paiement complété", + "message": "Votre paiement a été effectué avec succès. Merci de soutenir ", + "usernameDefault": "cet utilisateur.", + "receipt": "Un reçu a été envoyé à votre adresse courriel.", + "continue": "Continuer" + }, + "failure": { + "title": "Paiement annulé", + "message": "Le paiement a été annulé. Si vous n'aviez pas l'intention d'annuler, veuillez réessayer.", + "thanks": "Merci de supporter", + "tryAgain": "Réessayer", + "return": "Retour au profil de " + } } -} \ No newline at end of file +} diff --git a/src/router/router.js b/src/router/router.js index 4ab40d7..f119a24 100644 --- a/src/router/router.js +++ b/src/router/router.js @@ -1,5 +1,6 @@ import { useAuthStore } from '@/stores/authStore.js'; import CTA01 from '@/views/CTA01.vue'; +import PaymentFailed from '@/views/PaymentFailed.vue'; import CreatorList from '@/views/browser/CreatorList.vue'; import ContentEditorPage from '@/views/contents/ContentEditorPage.vue'; import ContentPage from '@/views/contents/ContentPage.vue'; @@ -22,7 +23,6 @@ import ProfilePage from '@/views/profile/ProfilePage.vue'; import { createRouter, createWebHistory } from 'vue-router'; import LoginView from '../views/LoginView.vue'; import PaymentCompleted from '../views/PaymentCompleted.vue'; -import PaymentFailed from "@/views/PaymentFailed.vue"; import Home from '../views/main/Home.vue'; import Wallet from '../views/main/Wallet.vue'; import CreateCreator from "@/views/profile/creators/CreateCreator.vue"; @@ -136,18 +136,14 @@ const routes = [ meta: { notAuthenticated: true }, }, { - path: '/paymentcompleted', + path: '/paymentcompleted/:creatorId', name: 'PaymentCompleted', component: PaymentCompleted, - - }, { - path: '/paymentfailed', + path: '/paymentfailed/:creatorId', name: 'PaymentFailed', component: PaymentFailed, - - }, { path: '/wallet', diff --git a/src/views/PaymentCompleted.vue b/src/views/PaymentCompleted.vue index f0e6434..f12957d 100644 --- a/src/views/PaymentCompleted.vue +++ b/src/views/PaymentCompleted.vue @@ -2,10 +2,13 @@ - + - Paiement complété + {{ $t('paymentConfirmation.success.title') }} @@ -15,37 +18,32 @@ -

Merci de supporter

-

{{ creatorName }}

+

+ {{ $t('paymentConfirmation.success.message') }} + {{ + creatorUserName + }} + {{ + $t('paymentConfirmation.success.usernameDefault') + }} +

- - - - - - - - Télécharger le reçu - - - + +

+ {{ $t('paymentConfirmation.success.receipt') }} +

- Continuer + {{ $t('paymentConfirmation.success.continue') }}
@@ -63,27 +61,23 @@