@autobusal/order-process 1.3.2 → 1.3.4
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/BKT/Bkt.tsx +6 -1
- package/CHANGELOG.md +15 -0
- package/OrderProcess.tsx +1 -1
- package/package.json +1 -1
- package/types.ts +1 -0
package/BKT/Bkt.tsx
CHANGED
|
@@ -55,7 +55,12 @@ const Bkt = ({ hash, t }: Props): JSX.Element => {
|
|
|
55
55
|
<Container>
|
|
56
56
|
<Inline text={ t('order_process.bkt') } />
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
{ /* Edited: Ferjolt Ozuni - Date: 2026-07-24
|
|
59
|
+
Bug: the gateway URL was hardcoded here instead of read from the
|
|
60
|
+
label's own configured BKT credentials (which already have an
|
|
61
|
+
editable 'url' field in the admin GUI, just unused). Now reads
|
|
62
|
+
data.url, returned by Prepare::addAccountData() in obtapi. */ }
|
|
63
|
+
<form ref={ ref } action={ data?.url } method="POST" onSubmit={ handleSubmit(onSubmit) }>
|
|
59
64
|
<input type="hidden" defaultValue={ data?.clientId } { ...register('clientid') } />
|
|
60
65
|
<input type="hidden" defaultValue={ data?.storetype } { ...register('storetype') } />
|
|
61
66
|
<input type="hidden" defaultValue={ data?.trantype } { ...register('trantype') } />
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,21 @@ All notable changes to `@autobusal/order-process` are documented here. This
|
|
|
4
4
|
project adheres to [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
|
|
5
5
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [1.3.4] - 2026-07-30
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **`noIndex` never used on the order processing page (`OrderProcess.tsx`).**
|
|
12
|
+
Same rationale as order-confirm - a transient, hash-gated page with no
|
|
13
|
+
search value, previously indexable by default.
|
|
14
|
+
|
|
15
|
+
## [1.3.3] - 2026-07-24
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- **`BKT/Bkt.tsx` was submitting a nearly-blank form to the bank.** The component reads camelCase fields (`clientId`, `orderId`, `fullName`, `postalCode`, etc.) matching the `BKTData` type, but `BKTController::make()` on the backend was returning a differently-shaped payload (raw bank field names like `clientid`, `ObtBktId`, `ShippingNameSurname`) with none of the expected keys present — every hidden input except `amount`/`description`/`rnd`/`hash`/`refreshtime` was silently `undefined`. Fixed on the obtapi side (`Prepare::$data` is now what's returned); no change needed here beyond adding the new `url` field.
|
|
20
|
+
- The gateway URL was hardcoded (`https://pgw.bkt.com.al/fim/est3Dgate`) instead of read from the label's own configured BKT credentials. Now reads `data.url`, which the admin GUI already has an editable field for.
|
|
21
|
+
|
|
7
22
|
## [1.3.2] - 2026-07-19
|
|
8
23
|
|
|
9
24
|
### Fixed
|
package/OrderProcess.tsx
CHANGED
|
@@ -11,7 +11,7 @@ const OrderProcess = ({ t }: Props): JSX.Element => {
|
|
|
11
11
|
const { type, hash } = useParams();
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
|
-
<Meta title={ t('order_process.title') }>
|
|
14
|
+
<Meta title={ t('order_process.title') } noIndex={ true }>
|
|
15
15
|
<Content type={ type } hash={ hash } t={ t } />
|
|
16
16
|
</Meta>
|
|
17
17
|
);
|
package/package.json
CHANGED