@brissoto/pay-react-native 0.0.0-stage → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +181 -2
- package/assets/brand/paypal-wordmark.png +0 -0
- package/assets/fonts/Figtree-Bold.ttf +0 -0
- package/assets/fonts/Figtree-ExtraBold.ttf +0 -0
- package/assets/fonts/Figtree-Medium.ttf +0 -0
- package/assets/fonts/Figtree-Regular.ttf +0 -0
- package/assets/fonts/Figtree-SemiBold.ttf +0 -0
- package/assets/fonts/OFL.txt +93 -0
- package/assets/logos/airtel.png +0 -0
- package/assets/logos/app-store.png +0 -0
- package/assets/logos/apple-pay.png +0 -0
- package/assets/logos/at.png +0 -0
- package/assets/logos/bancontact.png +0 -0
- package/assets/logos/card.png +0 -0
- package/assets/logos/cb.png +0 -0
- package/assets/logos/celtiis.png +0 -0
- package/assets/logos/eps.png +0 -0
- package/assets/logos/feexpay.png +0 -0
- package/assets/logos/google-pay.png +0 -0
- package/assets/logos/google-play.png +0 -0
- package/assets/logos/iapkit.png +0 -0
- package/assets/logos/ideal.png +0 -0
- package/assets/logos/mastercard.png +0 -0
- package/assets/logos/mixx.png +0 -0
- package/assets/logos/moov.png +0 -0
- package/assets/logos/mtn.png +0 -0
- package/assets/logos/mybank.png +0 -0
- package/assets/logos/nexus.png +0 -0
- package/assets/logos/orange.png +0 -0
- package/assets/logos/pawapay.png +0 -0
- package/assets/logos/paypal.png +0 -0
- package/assets/logos/telecel.png +0 -0
- package/assets/logos/tnm.png +0 -0
- package/assets/logos/visa.png +0 -0
- package/assets/logos/vodacom.png +0 -0
- package/assets/logos/wave.png +0 -0
- package/dist/checkout-core/hooks/use-checkout-controller.d.ts +9 -0
- package/dist/checkout-core/hooks/use-checkout-controller.js +563 -0
- package/dist/checkout-core/hooks/use-checkout-payment.d.ts +9 -0
- package/dist/checkout-core/hooks/use-checkout-payment.js +136 -0
- package/dist/checkout-core/hooks/use-checkout-timers.d.ts +15 -0
- package/dist/checkout-core/hooks/use-checkout-timers.js +44 -0
- package/dist/checkout-core/hooks/use-phone-number.d.ts +7 -0
- package/dist/checkout-core/hooks/use-phone-number.js +82 -0
- package/dist/checkout-core/messages/en.d.ts +302 -0
- package/dist/checkout-core/messages/en.js +301 -0
- package/dist/checkout-core/messages/fr.d.ts +4 -0
- package/dist/checkout-core/messages/fr.js +302 -0
- package/dist/checkout-core/models/checkout.card.utils.d.ts +7 -0
- package/dist/checkout-core/models/checkout.card.utils.js +25 -0
- package/dist/checkout-core/models/checkout.constants.d.ts +101 -0
- package/dist/checkout-core/models/checkout.constants.js +339 -0
- package/dist/checkout-core/models/checkout.country.utils.d.ts +17 -0
- package/dist/checkout-core/models/checkout.country.utils.js +45 -0
- package/dist/checkout-core/models/checkout.enum.d.ts +233 -0
- package/dist/checkout-core/models/checkout.enum.js +259 -0
- package/dist/checkout-core/models/checkout.fetch.utils.d.ts +6 -0
- package/dist/checkout-core/models/checkout.fetch.utils.js +22 -0
- package/dist/checkout-core/models/checkout.interface.d.ts +698 -0
- package/dist/checkout-core/models/checkout.interface.js +1 -0
- package/dist/checkout-core/models/checkout.money.utils.d.ts +7 -0
- package/dist/checkout-core/models/checkout.money.utils.js +21 -0
- package/dist/checkout-core/models/checkout.phone.utils.d.ts +33 -0
- package/dist/checkout-core/models/checkout.phone.utils.js +159 -0
- package/dist/checkout-core/models/checkout.view.utils.d.ts +77 -0
- package/dist/checkout-core/models/checkout.view.utils.js +331 -0
- package/dist/checkout-core/models/domain.enum.d.ts +106 -0
- package/dist/checkout-core/models/domain.enum.js +113 -0
- package/dist/components/BrissotoPayProvider.d.ts +8 -0
- package/dist/components/BrissotoPayProvider.js +39 -0
- package/dist/components/PaymentSheetModal.d.ts +9 -0
- package/dist/components/PaymentSheetModal.js +106 -0
- package/dist/components/SheetBone.d.ts +3 -0
- package/dist/components/SheetBone.js +12 -0
- package/dist/components/SheetButton.d.ts +7 -0
- package/dist/components/SheetButton.js +47 -0
- package/dist/components/SheetCardFields.d.ts +10 -0
- package/dist/components/SheetCardFields.js +86 -0
- package/dist/components/SheetChosenMethod.d.ts +3 -0
- package/dist/components/SheetChosenMethod.js +60 -0
- package/dist/components/SheetCodeField.d.ts +8 -0
- package/dist/components/SheetCodeField.js +98 -0
- package/dist/components/SheetContent.d.ts +3 -0
- package/dist/components/SheetContent.js +133 -0
- package/dist/components/SheetDial.d.ts +7 -0
- package/dist/components/SheetDial.js +36 -0
- package/dist/components/SheetFailed.d.ts +3 -0
- package/dist/components/SheetFailed.js +44 -0
- package/dist/components/SheetForm.d.ts +8 -0
- package/dist/components/SheetForm.js +141 -0
- package/dist/components/SheetGrabber.d.ts +2 -0
- package/dist/components/SheetGrabber.js +17 -0
- package/dist/components/SheetHeader.d.ts +7 -0
- package/dist/components/SheetHeader.js +83 -0
- package/dist/components/SheetIcon.d.ts +3 -0
- package/dist/components/SheetIcon.js +78 -0
- package/dist/components/SheetLayout.d.ts +11 -0
- package/dist/components/SheetLayout.js +63 -0
- package/dist/components/SheetLogo.d.ts +3 -0
- package/dist/components/SheetLogo.js +20 -0
- package/dist/components/SheetMessage.d.ts +3 -0
- package/dist/components/SheetMessage.js +15 -0
- package/dist/components/SheetMethodCard.d.ts +3 -0
- package/dist/components/SheetMethodCard.js +71 -0
- package/dist/components/SheetNameField.d.ts +7 -0
- package/dist/components/SheetNameField.js +48 -0
- package/dist/components/SheetPaypalButton.d.ts +3 -0
- package/dist/components/SheetPaypalButton.js +23 -0
- package/dist/components/SheetPhoneField.d.ts +3 -0
- package/dist/components/SheetPhoneField.js +59 -0
- package/dist/components/SheetPillSelect.d.ts +7 -0
- package/dist/components/SheetPillSelect.js +134 -0
- package/dist/components/SheetRow.d.ts +3 -0
- package/dist/components/SheetRow.js +28 -0
- package/dist/components/SheetSimulator.d.ts +6 -0
- package/dist/components/SheetSimulator.js +40 -0
- package/dist/components/SheetSkeleton.d.ts +5 -0
- package/dist/components/SheetSkeleton.js +23 -0
- package/dist/components/SheetStep.d.ts +6 -0
- package/dist/components/SheetStep.js +21 -0
- package/dist/components/SheetStoreTab.d.ts +7 -0
- package/dist/components/SheetStoreTab.js +27 -0
- package/dist/components/SheetSuccess.d.ts +3 -0
- package/dist/components/SheetSuccess.js +51 -0
- package/dist/components/SheetSummary.d.ts +3 -0
- package/dist/components/SheetSummary.js +32 -0
- package/dist/components/SheetTerminal.d.ts +6 -0
- package/dist/components/SheetTerminal.js +31 -0
- package/dist/components/SheetText.d.ts +5 -0
- package/dist/components/SheetText.js +27 -0
- package/dist/components/SheetToast.d.ts +7 -0
- package/dist/components/SheetToast.js +71 -0
- package/dist/components/SheetWaiting.d.ts +7 -0
- package/dist/components/SheetWaiting.js +88 -0
- package/dist/hooks/use-native-platform.d.ts +10 -0
- package/dist/hooks/use-native-platform.js +71 -0
- package/dist/hooks/use-payment-sheet.d.ts +4 -0
- package/dist/hooks/use-payment-sheet.js +10 -0
- package/dist/hooks/use-shake.d.ts +3 -0
- package/dist/hooks/use-shake.js +18 -0
- package/dist/hooks/use-sheet-motion.d.ts +7 -0
- package/dist/hooks/use-sheet-motion.js +62 -0
- package/dist/hooks/use-sheet-resize.d.ts +6 -0
- package/dist/hooks/use-sheet-resize.js +15 -0
- package/dist/hooks/use-sheet-room.d.ts +4 -0
- package/dist/hooks/use-sheet-room.js +8 -0
- package/dist/hooks/use-sheet-theme.d.ts +4 -0
- package/dist/hooks/use-sheet-theme.js +12 -0
- package/dist/hooks/use-step-slide.d.ts +16 -0
- package/dist/hooks/use-step-slide.js +50 -0
- package/dist/hooks/use-store-recovery.d.ts +9 -0
- package/dist/hooks/use-store-recovery.js +50 -0
- package/dist/hooks/use-store-tab.d.ts +11 -0
- package/dist/hooks/use-store-tab.js +112 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -0
- package/dist/models/sheet.constants.d.ts +125 -0
- package/dist/models/sheet.constants.js +204 -0
- package/dist/models/sheet.enum.d.ts +46 -0
- package/dist/models/sheet.enum.js +53 -0
- package/dist/models/sheet.interface.d.ts +426 -0
- package/dist/models/sheet.interface.js +1 -0
- package/dist/models/sheet.utils.d.ts +68 -0
- package/dist/models/sheet.utils.js +214 -0
- package/dist/services/checkout.service.d.ts +15 -0
- package/dist/services/checkout.service.js +96 -0
- package/dist/services/provider-window.service.d.ts +13 -0
- package/dist/services/provider-window.service.js +53 -0
- package/dist/services/store.service.d.ts +36 -0
- package/dist/services/store.service.js +107 -0
- package/package.json +73 -4
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
total_label: 'Amount to pay',
|
|
3
|
+
total: 'Total',
|
|
4
|
+
details: 'Details',
|
|
5
|
+
hide_details: 'Hide',
|
|
6
|
+
pay_with: 'Pay with',
|
|
7
|
+
pay_with_method: 'Pay with {method}',
|
|
8
|
+
unavailable: 'Temporarily unavailable',
|
|
9
|
+
soon: 'Coming soon',
|
|
10
|
+
charged_in: 'Pay in {currency}',
|
|
11
|
+
phone_label: 'Mobile Money number',
|
|
12
|
+
helper: 'The number linked to your {method} account',
|
|
13
|
+
phone_errors: {
|
|
14
|
+
start: 'Cameroon mobile numbers start with 6',
|
|
15
|
+
short: 'This number is too short',
|
|
16
|
+
invalid: "This number isn't valid",
|
|
17
|
+
empty: 'Enter your Mobile Money number',
|
|
18
|
+
country: 'Enter a number from one of the countries offered',
|
|
19
|
+
operator: "This number isn't on Orange or MTN",
|
|
20
|
+
},
|
|
21
|
+
otp_label: 'Payment code',
|
|
22
|
+
otp_placeholder: 'Enter the code',
|
|
23
|
+
otp_help: 'Dial this code on your {method} phone to get a payment code, then enter it here.',
|
|
24
|
+
card_fields: {
|
|
25
|
+
title: 'Card details',
|
|
26
|
+
number: 'Card number',
|
|
27
|
+
number_placeholder: '1234 1234 1234 1234',
|
|
28
|
+
expiry: 'Expiry date',
|
|
29
|
+
expiry_placeholder: 'MM / YY',
|
|
30
|
+
cvc: 'Security code',
|
|
31
|
+
cvc_placeholder: 'CVC',
|
|
32
|
+
incomplete: 'Check the card number, expiry date and security code.',
|
|
33
|
+
brand_refused: 'Only Visa and Mastercard cards are accepted.',
|
|
34
|
+
unavailable: 'Cards are unavailable right now. Pick another method.',
|
|
35
|
+
},
|
|
36
|
+
mismatch: 'Looks like a {method} number. Switch?',
|
|
37
|
+
switch_to: 'Switch',
|
|
38
|
+
pay_short: 'Pay {amount} {currency} with',
|
|
39
|
+
pay_plain: 'Pay {amount} {currency}',
|
|
40
|
+
sending: 'Sending request…',
|
|
41
|
+
tab_wallet: 'Mobile Money',
|
|
42
|
+
tab_card: 'Card & wallet',
|
|
43
|
+
countries: {
|
|
44
|
+
cm: 'Cameroon',
|
|
45
|
+
ci: 'Côte d’Ivoire',
|
|
46
|
+
sn: 'Senegal',
|
|
47
|
+
bj: 'Benin',
|
|
48
|
+
tg: 'Togo',
|
|
49
|
+
bf: 'Burkina Faso',
|
|
50
|
+
cd: 'DR Congo',
|
|
51
|
+
cg: 'Congo',
|
|
52
|
+
ga: 'Gabon',
|
|
53
|
+
gh: 'Ghana',
|
|
54
|
+
mw: 'Malawi',
|
|
55
|
+
rw: 'Rwanda',
|
|
56
|
+
sl: 'Sierra Leone',
|
|
57
|
+
ug: 'Uganda',
|
|
58
|
+
zm: 'Zambia',
|
|
59
|
+
be: 'Belgium',
|
|
60
|
+
nl: 'Netherlands',
|
|
61
|
+
at: 'Austria',
|
|
62
|
+
it: 'Italy',
|
|
63
|
+
intl: 'International',
|
|
64
|
+
},
|
|
65
|
+
country: 'Country',
|
|
66
|
+
continue: 'Continue',
|
|
67
|
+
back: 'Back to payment methods',
|
|
68
|
+
change: 'Change',
|
|
69
|
+
method_missing: 'Choose a payment method',
|
|
70
|
+
tab_empty: 'No payment method available here for now.',
|
|
71
|
+
secured_by: 'Payment secured by',
|
|
72
|
+
help: 'Need help?',
|
|
73
|
+
terms: 'Terms',
|
|
74
|
+
privacy: 'Privacy',
|
|
75
|
+
test_sub: 'No real money will be moved',
|
|
76
|
+
test_badge: 'Test',
|
|
77
|
+
loading: 'Loading the payment',
|
|
78
|
+
confirm_title: 'Confirm the payment on your phone',
|
|
79
|
+
sent_to: 'We sent a {method} request to',
|
|
80
|
+
manual_to: 'Approve your {method} payment on',
|
|
81
|
+
remaining: 'left to approve',
|
|
82
|
+
steps: {
|
|
83
|
+
first: 'Unlock your phone and open the request',
|
|
84
|
+
last: 'Enter your PIN to approve',
|
|
85
|
+
},
|
|
86
|
+
no_prompt: "Didn't get the request?",
|
|
87
|
+
send_again_hint: 'Send it again to your phone',
|
|
88
|
+
dial_pending: 'Dial this code to see pending payments',
|
|
89
|
+
send_again: 'Send again',
|
|
90
|
+
send_again_in: 'Send again in {clock}',
|
|
91
|
+
cancel: 'Cancel payment',
|
|
92
|
+
checking_title: 'Confirming your payment',
|
|
93
|
+
checking_with: '{method} is checking your code for',
|
|
94
|
+
checking_card: '{method} is checking your card.',
|
|
95
|
+
/** By the flow of a PayPal window (`FLOW_TRAITS.providerWindow`). */
|
|
96
|
+
checking_window: {
|
|
97
|
+
paypal: 'Finish paying in PayPal, then come back here.',
|
|
98
|
+
bank_redirect: 'Finish paying on your bank’s page, then come back here.',
|
|
99
|
+
},
|
|
100
|
+
checking_window_approved: {
|
|
101
|
+
paypal: 'Approved in PayPal: PayPal is confirming it.',
|
|
102
|
+
bank_redirect: 'Approved by your bank: confirming the payment.',
|
|
103
|
+
},
|
|
104
|
+
bank: {
|
|
105
|
+
name_label: 'Full name',
|
|
106
|
+
name_placeholder: 'Ada Kola',
|
|
107
|
+
name_missing: 'Enter your first and last name',
|
|
108
|
+
other_countries: 'Paying from another country?',
|
|
109
|
+
window_title: 'Back from your bank',
|
|
110
|
+
lost_title: 'Closed your bank’s page?',
|
|
111
|
+
lost_hint: 'Didn’t finish there? Say so, then pay another way.',
|
|
112
|
+
not_finished: 'I didn’t finish',
|
|
113
|
+
},
|
|
114
|
+
paypal: {
|
|
115
|
+
window_approved: 'PayPal approved',
|
|
116
|
+
window_cancelled: 'PayPal cancelled',
|
|
117
|
+
window_back: 'Go back to the payment to finish.',
|
|
118
|
+
},
|
|
119
|
+
simulator: {
|
|
120
|
+
title: 'Simulator',
|
|
121
|
+
body: 'Test payment: pick what happens to it.',
|
|
122
|
+
no_answer: 'A number ending in {suffix} gets no answer on start.',
|
|
123
|
+
approved: 'Approve',
|
|
124
|
+
declined: 'Decline',
|
|
125
|
+
insufficient_funds: 'Low balance',
|
|
126
|
+
no_account: 'No account',
|
|
127
|
+
wrong_pin: 'Wrong PIN',
|
|
128
|
+
wrong_code: 'Wrong code',
|
|
129
|
+
provider_error: 'Provider error',
|
|
130
|
+
wrong_amount: 'Approve a wrong amount',
|
|
131
|
+
approved_late: 'Approve late',
|
|
132
|
+
reversed: 'Approve, then reverse',
|
|
133
|
+
approved_all: 'Approve every request',
|
|
134
|
+
},
|
|
135
|
+
failure: {
|
|
136
|
+
declined: {
|
|
137
|
+
title: 'Payment declined',
|
|
138
|
+
body: 'The {method} payment was declined.',
|
|
139
|
+
next: 'Try again, or pay with another method.',
|
|
140
|
+
},
|
|
141
|
+
insufficient_funds: {
|
|
142
|
+
title: 'Low balance or limit reached',
|
|
143
|
+
body: 'Your {method} balance is too low for this payment, or you have reached your {method} limit.',
|
|
144
|
+
next: 'Top up or wait for your limit to reset, then try again, or pay with another method.',
|
|
145
|
+
},
|
|
146
|
+
no_account: {
|
|
147
|
+
title: 'No {method} account',
|
|
148
|
+
body: 'This number has no {method} account.',
|
|
149
|
+
next: 'Check the number and try again, or pay with another method.',
|
|
150
|
+
},
|
|
151
|
+
wrong_pin: {
|
|
152
|
+
title: 'Wrong PIN',
|
|
153
|
+
body: 'The PIN entered for {method} was not the right one.',
|
|
154
|
+
next: 'Try again with the right PIN.',
|
|
155
|
+
},
|
|
156
|
+
wrong_code: {
|
|
157
|
+
title: 'Wrong or expired code',
|
|
158
|
+
body: 'The {method} payment code was not accepted.',
|
|
159
|
+
next: 'Get a new code and try again.',
|
|
160
|
+
},
|
|
161
|
+
wrong_card_details: {
|
|
162
|
+
title: 'Card details not accepted',
|
|
163
|
+
body: "Your bank didn't accept the card number, expiry date or security code.",
|
|
164
|
+
next: 'Check the details on your card and try again.',
|
|
165
|
+
},
|
|
166
|
+
provider_error: {
|
|
167
|
+
title: '{method} is not responding',
|
|
168
|
+
body: "{method} couldn't process the payment. It isn't on your side.",
|
|
169
|
+
next: 'Try again in a moment, or pay with another method.',
|
|
170
|
+
},
|
|
171
|
+
timeout: {
|
|
172
|
+
title: 'Payment not confirmed',
|
|
173
|
+
body: "{method} didn't confirm the payment in time.",
|
|
174
|
+
next: 'Try again, or pay with another method.',
|
|
175
|
+
},
|
|
176
|
+
mismatch: {
|
|
177
|
+
title: 'Payment to be checked',
|
|
178
|
+
body: '{method} reported a different amount from the one asked. The payment was not accepted.',
|
|
179
|
+
next: 'Contact support with the payment reference before trying again.',
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
retry: 'Try again',
|
|
183
|
+
retry_code: 'Try with a new code',
|
|
184
|
+
use_another: 'Use another method',
|
|
185
|
+
try_with: 'Try with {method}',
|
|
186
|
+
tries_left: 'Attempts left',
|
|
187
|
+
tries_value: '{left} of {max}',
|
|
188
|
+
not_charged: 'Nothing was taken from your account.',
|
|
189
|
+
success_title: 'Payment successful',
|
|
190
|
+
paid_to: 'Paid to {app}',
|
|
191
|
+
amount: 'Amount',
|
|
192
|
+
method: 'Method',
|
|
193
|
+
number: 'Number',
|
|
194
|
+
card: 'Card',
|
|
195
|
+
date: 'Date',
|
|
196
|
+
reference: 'Reference',
|
|
197
|
+
copy: 'Copy',
|
|
198
|
+
copied: 'Copied',
|
|
199
|
+
return_to: 'Return to {app}',
|
|
200
|
+
return_in: 'Return to {app} ({seconds})',
|
|
201
|
+
expired: {
|
|
202
|
+
title: 'This payment link has expired',
|
|
203
|
+
body: 'Go back to {app} to get a new one.',
|
|
204
|
+
},
|
|
205
|
+
cancelled: {
|
|
206
|
+
title: 'This payment was cancelled',
|
|
207
|
+
body: 'Go back to {app} to pay again.',
|
|
208
|
+
},
|
|
209
|
+
locked_screen: {
|
|
210
|
+
title: 'Too many attempts',
|
|
211
|
+
body: 'For your security, this payment is paused after too many unsuccessful attempts.',
|
|
212
|
+
},
|
|
213
|
+
invalid: {
|
|
214
|
+
title: "This link isn't valid",
|
|
215
|
+
body: "We couldn't find this payment. The link may be incomplete. Open it again from the app you were paying in.",
|
|
216
|
+
},
|
|
217
|
+
no_method: {
|
|
218
|
+
title: 'No way to pay right now',
|
|
219
|
+
body: '{app} offers no payment method at the moment. Try again later.',
|
|
220
|
+
},
|
|
221
|
+
unavailable_screen: {
|
|
222
|
+
title: 'Payment unavailable',
|
|
223
|
+
body: 'No payment method is available in your country yet.',
|
|
224
|
+
},
|
|
225
|
+
contact_support: 'Contact support',
|
|
226
|
+
get_help: 'Get help',
|
|
227
|
+
returning: 'Returning to {app}…',
|
|
228
|
+
not_redirected: 'Not redirected? Tap here',
|
|
229
|
+
contact_title: 'Contact support',
|
|
230
|
+
reference_title: 'Payment reference',
|
|
231
|
+
reference_hint: 'Share it with support so we can find your payment quickly.',
|
|
232
|
+
close: 'Close',
|
|
233
|
+
sheet: {
|
|
234
|
+
approve_title: 'Approve on your phone',
|
|
235
|
+
approve_body: 'Enter your {method} PIN in the request sent to {phone}.',
|
|
236
|
+
expires_in: 'Expires in',
|
|
237
|
+
manual_body: 'Approve your {method} payment on {phone}.',
|
|
238
|
+
done_in: 'Done ({seconds})',
|
|
239
|
+
close_title: 'Close the payment?',
|
|
240
|
+
close_body: 'The request is still on your phone. If you approve it, the payment goes through.',
|
|
241
|
+
keep_waiting: 'Keep waiting',
|
|
242
|
+
dial: 'Dial {code}',
|
|
243
|
+
store_pay: 'Pay {price}',
|
|
244
|
+
store_body: 'You pay {price} with your {store} account. {store} sends you the receipt.',
|
|
245
|
+
store_refund_consent: 'By paying, you agree that {store} may receive delivery details if you ask for a refund.',
|
|
246
|
+
store_checking: '{method} is confirming your purchase.',
|
|
247
|
+
store_pending_title: 'Waiting for approval',
|
|
248
|
+
store_pending_body: 'This purchase must be approved in {method} first. It goes through as soon as it is, even if you close this.',
|
|
249
|
+
},
|
|
250
|
+
faqs: {
|
|
251
|
+
not_received: {
|
|
252
|
+
q: "I didn't get the request on my phone",
|
|
253
|
+
a: 'Check that your phone is on and has network, then send it again from the waiting screen. After the last request, that screen shows what to dial if your network has a code.',
|
|
254
|
+
},
|
|
255
|
+
debited: {
|
|
256
|
+
q: 'I was debited but the page says failed',
|
|
257
|
+
a: "Don't pay again. Contact support with your payment reference so we can check it.",
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
channels: {
|
|
261
|
+
whatsapp: 'WhatsApp',
|
|
262
|
+
email: 'Email',
|
|
263
|
+
},
|
|
264
|
+
not_found: {
|
|
265
|
+
title: 'Page not found',
|
|
266
|
+
body: 'This address leads to no page. Check the link you were sent.',
|
|
267
|
+
},
|
|
268
|
+
error: {
|
|
269
|
+
title: 'This page could not load',
|
|
270
|
+
body: 'Nothing was charged. Try again in a moment.',
|
|
271
|
+
retry: 'Try again',
|
|
272
|
+
},
|
|
273
|
+
refusals: {
|
|
274
|
+
closed: 'This payment can no longer be paid.',
|
|
275
|
+
method: 'This method is not available right now. Pick another one.',
|
|
276
|
+
phone: 'This number does not belong to this method’s country.',
|
|
277
|
+
code: 'Enter the payment code you generated.',
|
|
278
|
+
busy: 'Your earlier attempts are still in progress. Wait for their answer before trying again.',
|
|
279
|
+
name: 'Enter the first and last name on your bank account.',
|
|
280
|
+
},
|
|
281
|
+
toast: {
|
|
282
|
+
copied: 'Reference copied',
|
|
283
|
+
switched: 'Switched to {method}',
|
|
284
|
+
unavailable: '{method} is temporarily unavailable',
|
|
285
|
+
soon: '{method} is coming soon',
|
|
286
|
+
no_answer: 'No answer yet: try again or pick another method',
|
|
287
|
+
failed: 'Something went wrong. Try again.',
|
|
288
|
+
sent_again: 'Request sent again to {phone}',
|
|
289
|
+
send_again_wait: 'Wait a few seconds before asking again.',
|
|
290
|
+
preview: 'Preview only: nothing is paid here',
|
|
291
|
+
dial: 'Dial {code} from your {method} phone.',
|
|
292
|
+
method_unavailable: '{method} is unavailable right now. Pick another method.',
|
|
293
|
+
},
|
|
294
|
+
dark_mode: 'Dark mode',
|
|
295
|
+
light_mode: 'Light mode',
|
|
296
|
+
language_label: 'Language / Langue',
|
|
297
|
+
meta: {
|
|
298
|
+
title: 'Secure payment',
|
|
299
|
+
description: 'Pay securely by mobile money or card with Brissoto Pay.',
|
|
300
|
+
},
|
|
301
|
+
};
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
/** Same keys as the English catalog: the compiler flags a missing or extra one. */
|
|
2
|
+
const messages = {
|
|
3
|
+
total_label: 'Montant à payer',
|
|
4
|
+
total: 'Total',
|
|
5
|
+
details: 'Détails',
|
|
6
|
+
hide_details: 'Masquer',
|
|
7
|
+
pay_with: 'Payer avec',
|
|
8
|
+
pay_with_method: 'Payer avec {method}',
|
|
9
|
+
unavailable: 'Temporairement indisponible',
|
|
10
|
+
soon: 'Bientôt disponible',
|
|
11
|
+
charged_in: 'Paiement en {currency}',
|
|
12
|
+
phone_label: 'Numéro Mobile Money',
|
|
13
|
+
helper: 'Le numéro associé à votre compte {method}',
|
|
14
|
+
phone_errors: {
|
|
15
|
+
start: 'Les numéros mobiles camerounais commencent par 6',
|
|
16
|
+
short: 'Ce numéro est trop court',
|
|
17
|
+
invalid: "Ce numéro n'est pas valide",
|
|
18
|
+
empty: 'Saisissez votre numéro Mobile Money',
|
|
19
|
+
country: "Saisissez un numéro d'un des pays proposés",
|
|
20
|
+
operator: "Ce numéro n'est ni Orange ni MTN",
|
|
21
|
+
},
|
|
22
|
+
otp_label: 'Code de paiement',
|
|
23
|
+
otp_placeholder: 'Saisissez le code',
|
|
24
|
+
otp_help: 'Composez ce code sur votre téléphone {method} pour obtenir un code de paiement, puis saisissez-le ici.',
|
|
25
|
+
card_fields: {
|
|
26
|
+
title: 'Données de la carte',
|
|
27
|
+
number: 'Numéro de carte',
|
|
28
|
+
number_placeholder: '1234 1234 1234 1234',
|
|
29
|
+
expiry: "Date d'expiration",
|
|
30
|
+
expiry_placeholder: 'MM / AA',
|
|
31
|
+
cvc: 'Code de sécurité',
|
|
32
|
+
cvc_placeholder: 'CVC',
|
|
33
|
+
incomplete: "Vérifiez le numéro de carte, la date d'expiration et le code de sécurité.",
|
|
34
|
+
brand_refused: 'Seules les cartes Visa et Mastercard sont acceptées.',
|
|
35
|
+
unavailable: 'Les cartes ne sont pas disponibles pour le moment. Choisissez un autre moyen.',
|
|
36
|
+
},
|
|
37
|
+
mismatch: 'Ce numéro semble être {method}. Changer ?',
|
|
38
|
+
switch_to: 'Changer',
|
|
39
|
+
pay_short: 'Payer {amount} {currency} avec',
|
|
40
|
+
pay_plain: 'Payer {amount} {currency}',
|
|
41
|
+
sending: 'Envoi de la demande…',
|
|
42
|
+
tab_wallet: 'Mobile Money',
|
|
43
|
+
tab_card: 'Carte & wallet',
|
|
44
|
+
countries: {
|
|
45
|
+
cm: 'Cameroun',
|
|
46
|
+
ci: 'Côte d’Ivoire',
|
|
47
|
+
sn: 'Sénégal',
|
|
48
|
+
bj: 'Bénin',
|
|
49
|
+
tg: 'Togo',
|
|
50
|
+
bf: 'Burkina Faso',
|
|
51
|
+
cd: 'RD Congo',
|
|
52
|
+
cg: 'Congo',
|
|
53
|
+
ga: 'Gabon',
|
|
54
|
+
gh: 'Ghana',
|
|
55
|
+
mw: 'Malawi',
|
|
56
|
+
rw: 'Rwanda',
|
|
57
|
+
sl: 'Sierra Leone',
|
|
58
|
+
ug: 'Ouganda',
|
|
59
|
+
zm: 'Zambie',
|
|
60
|
+
be: 'Belgique',
|
|
61
|
+
nl: 'Pays-Bas',
|
|
62
|
+
at: 'Autriche',
|
|
63
|
+
it: 'Italie',
|
|
64
|
+
intl: 'International',
|
|
65
|
+
},
|
|
66
|
+
country: 'Pays',
|
|
67
|
+
continue: 'Continuer',
|
|
68
|
+
back: 'Retour aux moyens de paiement',
|
|
69
|
+
change: 'Modifier',
|
|
70
|
+
method_missing: 'Choisissez un moyen de paiement',
|
|
71
|
+
tab_empty: 'Aucun moyen de paiement disponible ici pour le moment.',
|
|
72
|
+
secured_by: 'Paiement sécurisé par',
|
|
73
|
+
help: "Besoin d'aide ?",
|
|
74
|
+
terms: 'Conditions',
|
|
75
|
+
privacy: 'Confidentialité',
|
|
76
|
+
test_sub: 'Aucun argent réel ne sera débité',
|
|
77
|
+
test_badge: 'Test',
|
|
78
|
+
loading: 'Chargement du paiement',
|
|
79
|
+
confirm_title: 'Confirmez le paiement sur votre téléphone',
|
|
80
|
+
sent_to: 'Demande {method} envoyée au',
|
|
81
|
+
manual_to: 'Validez votre paiement {method} sur le',
|
|
82
|
+
remaining: 'pour valider',
|
|
83
|
+
steps: {
|
|
84
|
+
first: 'Déverrouillez votre téléphone et ouvrez la demande',
|
|
85
|
+
last: 'Saisissez votre code secret pour valider',
|
|
86
|
+
},
|
|
87
|
+
no_prompt: 'Pas reçu la demande ?',
|
|
88
|
+
send_again_hint: 'Renvoyez-la sur votre téléphone',
|
|
89
|
+
dial_pending: 'Composez ce code pour voir les paiements en attente',
|
|
90
|
+
send_again: 'Renvoyer',
|
|
91
|
+
send_again_in: 'Renvoyer dans {clock}',
|
|
92
|
+
cancel: 'Annuler le paiement',
|
|
93
|
+
checking_title: 'Confirmation du paiement',
|
|
94
|
+
checking_with: '{method} vérifie votre code pour le',
|
|
95
|
+
checking_card: '{method} vérifie votre carte.',
|
|
96
|
+
checking_window: {
|
|
97
|
+
paypal: 'Terminez le paiement dans PayPal, puis revenez ici.',
|
|
98
|
+
bank_redirect: 'Terminez le paiement sur la page de votre banque, puis revenez ici.',
|
|
99
|
+
},
|
|
100
|
+
checking_window_approved: {
|
|
101
|
+
paypal: 'Approuvé dans PayPal : PayPal le confirme.',
|
|
102
|
+
bank_redirect: 'Approuvé par votre banque : confirmation du paiement.',
|
|
103
|
+
},
|
|
104
|
+
bank: {
|
|
105
|
+
name_label: 'Nom complet',
|
|
106
|
+
name_placeholder: 'Ada Kola',
|
|
107
|
+
name_missing: 'Saisissez votre prénom et votre nom',
|
|
108
|
+
other_countries: 'Vous payez depuis un autre pays ?',
|
|
109
|
+
window_title: 'De retour de votre banque',
|
|
110
|
+
lost_title: 'Vous avez fermé la page de votre banque ?',
|
|
111
|
+
lost_hint: 'Pas terminé ? Dites-le, puis payez autrement.',
|
|
112
|
+
not_finished: 'Je n’ai pas terminé',
|
|
113
|
+
},
|
|
114
|
+
paypal: {
|
|
115
|
+
window_approved: 'PayPal approuvé',
|
|
116
|
+
window_cancelled: 'PayPal annulé',
|
|
117
|
+
window_back: 'Revenez au paiement pour terminer.',
|
|
118
|
+
},
|
|
119
|
+
simulator: {
|
|
120
|
+
title: 'Simulateur',
|
|
121
|
+
body: 'Paiement de test : choisissez ce qui lui arrive.',
|
|
122
|
+
no_answer: 'Un numéro finissant par {suffix} ne répond pas au lancement.',
|
|
123
|
+
approved: 'Valider',
|
|
124
|
+
declined: 'Refuser',
|
|
125
|
+
insufficient_funds: 'Solde insuffisant',
|
|
126
|
+
no_account: 'Pas de compte',
|
|
127
|
+
wrong_pin: 'Mauvais code secret',
|
|
128
|
+
wrong_code: 'Code de paiement erroné',
|
|
129
|
+
provider_error: 'Erreur du fournisseur',
|
|
130
|
+
wrong_amount: 'Valider un mauvais montant',
|
|
131
|
+
approved_late: 'Valider en retard',
|
|
132
|
+
reversed: 'Valider puis annuler',
|
|
133
|
+
approved_all: 'Valider toutes les demandes',
|
|
134
|
+
},
|
|
135
|
+
failure: {
|
|
136
|
+
declined: {
|
|
137
|
+
title: 'Paiement refusé',
|
|
138
|
+
body: 'Le paiement {method} a été refusé.',
|
|
139
|
+
next: 'Réessayez, ou payez avec un autre moyen.',
|
|
140
|
+
},
|
|
141
|
+
insufficient_funds: {
|
|
142
|
+
title: 'Solde insuffisant ou plafond atteint',
|
|
143
|
+
body: 'Votre solde {method} est insuffisant pour ce paiement, ou votre plafond {method} est atteint.',
|
|
144
|
+
next: 'Rechargez ou attendez que votre plafond se renouvelle, puis réessayez, ou payez avec un autre moyen.',
|
|
145
|
+
},
|
|
146
|
+
no_account: {
|
|
147
|
+
title: 'Aucun compte {method}',
|
|
148
|
+
body: "Ce numéro n'a pas de compte {method}.",
|
|
149
|
+
next: 'Vérifiez le numéro puis réessayez, ou payez avec un autre moyen.',
|
|
150
|
+
},
|
|
151
|
+
wrong_pin: {
|
|
152
|
+
title: 'Code secret incorrect',
|
|
153
|
+
body: "Le code secret saisi pour {method} n'est pas le bon.",
|
|
154
|
+
next: 'Réessayez avec le bon code secret.',
|
|
155
|
+
},
|
|
156
|
+
wrong_code: {
|
|
157
|
+
title: 'Code erroné ou expiré',
|
|
158
|
+
body: "Le code de paiement {method} n'a pas été accepté.",
|
|
159
|
+
next: 'Obtenez un nouveau code et réessayez.',
|
|
160
|
+
},
|
|
161
|
+
wrong_card_details: {
|
|
162
|
+
title: 'Coordonnées de carte refusées',
|
|
163
|
+
body: "Votre banque n'a pas accepté le numéro de carte, la date d'expiration ou le code de sécurité.",
|
|
164
|
+
next: 'Vérifiez les informations de votre carte et réessayez.',
|
|
165
|
+
},
|
|
166
|
+
provider_error: {
|
|
167
|
+
title: '{method} ne répond pas',
|
|
168
|
+
body: "{method} n'a pas pu traiter le paiement. Le problème ne vient pas de vous.",
|
|
169
|
+
next: 'Réessayez dans un instant, ou payez avec un autre moyen.',
|
|
170
|
+
},
|
|
171
|
+
timeout: {
|
|
172
|
+
title: 'Paiement non confirmé',
|
|
173
|
+
body: "{method} n'a pas confirmé le paiement à temps.",
|
|
174
|
+
next: 'Réessayez, ou payez avec un autre moyen.',
|
|
175
|
+
},
|
|
176
|
+
mismatch: {
|
|
177
|
+
title: 'Paiement à vérifier',
|
|
178
|
+
body: "{method} a signalé un montant différent de celui demandé. Le paiement n'a pas été validé.",
|
|
179
|
+
next: 'Contactez le support avec la référence du paiement avant de réessayer.',
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
retry: 'Réessayer',
|
|
183
|
+
retry_code: 'Réessayer avec un nouveau code',
|
|
184
|
+
use_another: 'Utiliser un autre moyen',
|
|
185
|
+
try_with: 'Essayer avec {method}',
|
|
186
|
+
tries_left: 'Tentatives restantes',
|
|
187
|
+
tries_value: '{left} sur {max}',
|
|
188
|
+
not_charged: "Aucun montant n'a été débité de votre compte.",
|
|
189
|
+
success_title: 'Paiement réussi',
|
|
190
|
+
paid_to: 'Payé à {app}',
|
|
191
|
+
amount: 'Montant',
|
|
192
|
+
method: 'Moyen',
|
|
193
|
+
number: 'Numéro',
|
|
194
|
+
card: 'Carte',
|
|
195
|
+
date: 'Date',
|
|
196
|
+
reference: 'Référence',
|
|
197
|
+
copy: 'Copier',
|
|
198
|
+
copied: 'Copié',
|
|
199
|
+
return_to: 'Retour à {app}',
|
|
200
|
+
return_in: 'Retour à {app} ({seconds})',
|
|
201
|
+
expired: {
|
|
202
|
+
title: 'Ce lien de paiement a expiré',
|
|
203
|
+
body: 'Retournez sur {app} pour en obtenir un nouveau.',
|
|
204
|
+
},
|
|
205
|
+
cancelled: {
|
|
206
|
+
title: 'Ce paiement a été annulé',
|
|
207
|
+
body: 'Retournez sur {app} pour payer à nouveau.',
|
|
208
|
+
},
|
|
209
|
+
locked_screen: {
|
|
210
|
+
title: 'Trop de tentatives',
|
|
211
|
+
body: 'Pour votre sécurité, ce paiement est suspendu après trop de tentatives infructueuses.',
|
|
212
|
+
},
|
|
213
|
+
invalid: {
|
|
214
|
+
title: "Ce lien n'est pas valide",
|
|
215
|
+
body: "Nous ne trouvons pas ce paiement. Le lien est peut-être incomplet. Rouvrez-le depuis l'application où vous payiez.",
|
|
216
|
+
},
|
|
217
|
+
no_method: {
|
|
218
|
+
title: 'Aucun moyen de paiement pour le moment',
|
|
219
|
+
body: '{app} ne propose aucun moyen de paiement en ce moment. Réessayez plus tard.',
|
|
220
|
+
},
|
|
221
|
+
unavailable_screen: {
|
|
222
|
+
title: 'Paiement indisponible',
|
|
223
|
+
body: "Aucun moyen de paiement n'est encore disponible dans votre pays.",
|
|
224
|
+
},
|
|
225
|
+
contact_support: 'Contacter le support',
|
|
226
|
+
get_help: "Obtenir de l'aide",
|
|
227
|
+
returning: 'Retour à {app}…',
|
|
228
|
+
not_redirected: 'Pas redirigé ? Appuyez ici',
|
|
229
|
+
contact_title: 'Contacter le support',
|
|
230
|
+
reference_title: 'Référence du paiement',
|
|
231
|
+
reference_hint: 'Communiquez-la au support pour retrouver votre paiement rapidement.',
|
|
232
|
+
close: 'Fermer',
|
|
233
|
+
sheet: {
|
|
234
|
+
store_pay: 'Payer {price}',
|
|
235
|
+
store_body: 'Vous payez {price} avec votre compte {store}. {store} vous envoie le reçu.',
|
|
236
|
+
store_refund_consent: 'En payant, vous acceptez que {store} reçoive des informations de livraison si vous demandez un remboursement.',
|
|
237
|
+
store_checking: '{method} confirme votre achat.',
|
|
238
|
+
store_pending_title: 'En attente d’approbation',
|
|
239
|
+
store_pending_body: 'Cet achat doit d’abord être approuvé dans {method}. Il passe dès qu’il l’est, même si vous fermez cette fenêtre.',
|
|
240
|
+
approve_title: 'Approuvez sur votre téléphone',
|
|
241
|
+
approve_body: 'Composez votre code secret {method} dans la fenêtre reçue au {phone}.',
|
|
242
|
+
expires_in: 'Expire dans',
|
|
243
|
+
manual_body: 'Validez votre paiement {method} sur le {phone}.',
|
|
244
|
+
done_in: 'Terminé ({seconds})',
|
|
245
|
+
close_title: 'Fermer le paiement ?',
|
|
246
|
+
close_body: 'La demande est toujours sur votre téléphone. Si vous la validez, le paiement passe.',
|
|
247
|
+
keep_waiting: 'Continuer d’attendre',
|
|
248
|
+
dial: 'Composer le {code}',
|
|
249
|
+
},
|
|
250
|
+
faqs: {
|
|
251
|
+
not_received: {
|
|
252
|
+
q: "Je n'ai pas reçu la demande",
|
|
253
|
+
a: "Vérifiez que votre téléphone est allumé et capte le réseau, puis renvoyez-la depuis l'écran d'attente. Après la dernière demande, cet écran indique quoi composer si votre réseau a un code.",
|
|
254
|
+
},
|
|
255
|
+
debited: {
|
|
256
|
+
q: "J'ai été débité mais la page indique un échec",
|
|
257
|
+
a: 'Ne payez pas une deuxième fois. Contactez le support avec votre référence pour que nous le vérifiions.',
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
channels: {
|
|
261
|
+
whatsapp: 'WhatsApp',
|
|
262
|
+
email: 'E-mail',
|
|
263
|
+
},
|
|
264
|
+
not_found: {
|
|
265
|
+
title: 'Page introuvable',
|
|
266
|
+
body: 'Cette adresse ne mène à aucune page. Vérifiez le lien reçu.',
|
|
267
|
+
},
|
|
268
|
+
error: {
|
|
269
|
+
title: "Cette page n'a pas pu s'afficher",
|
|
270
|
+
body: "Rien n'a été débité. Réessayez dans un instant.",
|
|
271
|
+
retry: 'Réessayer',
|
|
272
|
+
},
|
|
273
|
+
refusals: {
|
|
274
|
+
closed: 'Ce paiement ne peut plus être payé.',
|
|
275
|
+
method: "Ce moyen n'est pas disponible pour le moment. Choisissez-en un autre.",
|
|
276
|
+
phone: "Ce numéro n'est pas du pays de ce moyen.",
|
|
277
|
+
code: 'Saisissez le code de paiement que vous avez généré.',
|
|
278
|
+
busy: 'Vos tentatives précédentes sont encore en cours. Attendez leur réponse avant de réessayer.',
|
|
279
|
+
name: 'Saisissez le prénom et le nom de votre compte bancaire.',
|
|
280
|
+
},
|
|
281
|
+
toast: {
|
|
282
|
+
copied: 'Référence copiée',
|
|
283
|
+
switched: 'Passé à {method}',
|
|
284
|
+
unavailable: '{method} est temporairement indisponible',
|
|
285
|
+
soon: '{method} arrive bientôt',
|
|
286
|
+
no_answer: 'Pas encore de réponse : réessayez ou choisissez un autre moyen',
|
|
287
|
+
failed: 'Une erreur est survenue. Réessayez.',
|
|
288
|
+
sent_again: 'Demande renvoyée au {phone}',
|
|
289
|
+
send_again_wait: 'Patientez quelques secondes avant de la renvoyer.',
|
|
290
|
+
preview: 'Aperçu seulement : rien n’est payé ici',
|
|
291
|
+
dial: 'Composez {code} depuis votre téléphone {method}.',
|
|
292
|
+
method_unavailable: '{method} est indisponible pour le moment. Choisissez un autre moyen.',
|
|
293
|
+
},
|
|
294
|
+
dark_mode: 'Mode sombre',
|
|
295
|
+
light_mode: 'Mode clair',
|
|
296
|
+
language_label: 'Language / Langue',
|
|
297
|
+
meta: {
|
|
298
|
+
title: 'Paiement sécurisé',
|
|
299
|
+
description: 'Payez en toute sécurité par Mobile Money ou carte avec Brissoto Pay.',
|
|
300
|
+
},
|
|
301
|
+
};
|
|
302
|
+
export default messages;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CardFieldsPageProps, CardFieldsSearch, CardSummary } from './checkout.interface.js';
|
|
2
|
+
/** The card fields page's address: the payment, method, app colour and theme, when valid; anything else is dropped. */
|
|
3
|
+
export declare function validateCardFieldsSearch(search: Record<string, unknown>): CardFieldsSearch;
|
|
4
|
+
/** The page's payment, method and look, from its address. */
|
|
5
|
+
export declare function cardFieldsLookOf(search: CardFieldsSearch): CardFieldsPageProps;
|
|
6
|
+
/** "Visa •••• 4242": a paid card, as the receipt and the dashboard show it. */
|
|
7
|
+
export declare function cardLabel(card: CardSummary): string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CheckoutThemeEnum } from "./checkout.enum.js";
|
|
2
|
+
const HEX_COLOR = /^#[0-9a-f]{6}$/i;
|
|
3
|
+
/** The card fields page's address: the payment, method, app colour and theme, when valid; anything else is dropped. */
|
|
4
|
+
export function validateCardFieldsSearch(search) {
|
|
5
|
+
const { payment, method, color, theme } = search;
|
|
6
|
+
return {
|
|
7
|
+
...(typeof payment === 'string' ? { payment } : {}),
|
|
8
|
+
...(typeof method === 'string' ? { method } : {}),
|
|
9
|
+
...(typeof color === 'string' && HEX_COLOR.test(color) ? { color } : {}),
|
|
10
|
+
...(theme === CheckoutThemeEnum.DARK ? { theme } : {}),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/** The page's payment, method and look, from its address. */
|
|
14
|
+
export function cardFieldsLookOf(search) {
|
|
15
|
+
return {
|
|
16
|
+
paymentId: search.payment ?? null,
|
|
17
|
+
method: search.method ?? null,
|
|
18
|
+
color: search.color ?? null,
|
|
19
|
+
dark: search.theme === CheckoutThemeEnum.DARK,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/** "Visa •••• 4242": a paid card, as the receipt and the dashboard show it. */
|
|
23
|
+
export function cardLabel(card) {
|
|
24
|
+
return `${card.brand} •••• ${card.last4}`;
|
|
25
|
+
}
|