@12-apps/payments-frontend 3.31.0 → 3.31.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@12-apps/payments-frontend",
|
|
3
|
-
"version": "3.31.
|
|
3
|
+
"version": "3.31.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "Browser half of the vendor-agnostic payments platform: plug-and-play MUI components for the per-provider settings page (credential form from each provider's schema, masked hints, verify/enable) and the checkout page (PIX QR + polling, card tokenization, hosted-checkout redirect), plus the headless hooks and fetch clients they build on. Talks only to the host's payments HTTP surface — never to a provider directly. Microfrontend-ready: no app coupling, host injects theme and auth.",
|
|
@@ -254,11 +254,9 @@ export function PixView({
|
|
|
254
254
|
// The locale is the HOST's (FUT-760): it decides what a buyer reads off the
|
|
255
255
|
// clock, so it travels with the sentence it feeds rather than being frozen
|
|
256
256
|
// to the origin host's here.
|
|
257
|
-
const validUntil = new Date(pix.expiresAt).toLocaleTimeString(copy.expiryLocale, {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
});
|
|
261
|
-
const sentences = pixSentences(copy, pix.confirmation === "MANUAL");
|
|
257
|
+
const validUntil = new Date(pix.expiresAt).toLocaleTimeString(copy.expiryLocale, { hour: "2-digit", minute: "2-digit" });
|
|
258
|
+
const manual = pix.confirmation === "MANUAL";
|
|
259
|
+
const sentences = pixSentences(copy, manual);
|
|
262
260
|
|
|
263
261
|
return (
|
|
264
262
|
<Box
|
|
@@ -287,7 +285,7 @@ export function PixView({
|
|
|
287
285
|
{sentences.validUntil(validUntil)}
|
|
288
286
|
</Text>
|
|
289
287
|
|
|
290
|
-
<PixPollFooter error={error} timedOut={timedOut} onCheckAgain={checkAgain} manual={
|
|
288
|
+
<PixPollFooter error={error} timedOut={timedOut} onCheckAgain={checkAgain} manual={manual} />
|
|
291
289
|
</Box>
|
|
292
290
|
);
|
|
293
291
|
}
|
|
@@ -44,7 +44,7 @@ export const PT_BR_CHECKOUT_SCREENS_COPY: CheckoutScreensCopy = {
|
|
|
44
44
|
instructions: (totalLabel) =>
|
|
45
45
|
`Pague ${totalLabel} com o QR code ou o código abaixo. A loja confere o recebimento e confirma o seu pedido.`,
|
|
46
46
|
validUntil: (time) => `A loja confirma o pagamento até ${time}.`,
|
|
47
|
-
awaiting: 'Aguardando
|
|
47
|
+
awaiting: 'Aguardando confirmação do pagamento pela loja…',
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
50
|
card: {
|