tonder-web-sdk 1.12.0-beta.9 → 1.14.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/README.md +664 -106
- package/package.json +2 -1
- package/src/classes/3dsHandler.js +20 -9
- package/src/classes/BaseInlineCheckout.js +17 -23
- package/src/classes/LiteInlineCheckout.js +46 -41
- package/src/classes/inlineCheckout.js +86 -75
- package/src/data/cardApi.js +21 -4
- package/src/helpers/template.js +9 -1
- package/src/helpers/utils.js +4 -4
- package/src/helpers/validations.js +54 -0
- package/src/index-dev.js +160 -78
- package/src/index.html +4 -1
- package/src/index.js +7 -1
- package/types/{card.ts → card.d.ts} +1 -0
- package/types/{checkout.ts → checkout.d.ts} +1 -1
- package/types/{common.ts → common.d.ts} +1 -0
- package/types/{customer.ts → customer.d.ts} +1 -0
- package/types/index.d.ts +1 -1
- package/types/inlineCheckout.d.ts +53 -1
- package/types/liteInlineCheckout.d.ts +65 -8
- package/types/validations.d.ts +11 -0
- package/v1/bundle.min.js +3 -3
- package/webpack.config.js +12 -1
- package/.idea/aws.xml +0 -17
- package/.idea/inspectionProfiles/profiles_settings.xml +0 -6
- package/.idea/misc.xml +0 -4
- package/.idea/prettier.xml +0 -6
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -153
- /package/types/{paymentMethod.ts → paymentMethod.d.ts} +0 -0
- /package/types/{transaction.ts → transaction.d.ts} +0 -0
package/src/helpers/template.js
CHANGED
|
@@ -3,7 +3,10 @@ import {getPaymentMethodDetails} from "../shared/catalog/paymentMethodsCatalog";
|
|
|
3
3
|
|
|
4
4
|
export const cardTemplate = (data) => `
|
|
5
5
|
<div class="container-tonder">
|
|
6
|
-
|
|
6
|
+
${ data.customization?.saveCards?.showSaved ?
|
|
7
|
+
`<div id="cardsListContainer" class="cards-list-container"></div>`
|
|
8
|
+
:``
|
|
9
|
+
}
|
|
7
10
|
<div class="pay-new-card">
|
|
8
11
|
<input checked id="new" class="card_selected" name="card_selected" type="radio"/>
|
|
9
12
|
<label class="card-item-label-new" for="new">
|
|
@@ -20,12 +23,17 @@ export const cardTemplate = (data) => `
|
|
|
20
23
|
<div id="collectExpirationYear" class="expiration-year"></div>
|
|
21
24
|
<div id="collectCvv" class="empty-div"></div>
|
|
22
25
|
</div>
|
|
26
|
+
${!!data.customization?.saveCards?.showSaveCardOption
|
|
27
|
+
? `
|
|
23
28
|
<div class="checkbox" id="save-card-container">
|
|
24
29
|
<input id="save-checkout-card" type="checkbox">
|
|
25
30
|
<label for="save-checkout-card">
|
|
26
31
|
Guardar tarjeta para futuros pagos
|
|
27
32
|
</label>
|
|
28
33
|
</div>
|
|
34
|
+
`
|
|
35
|
+
:``}
|
|
36
|
+
|
|
29
37
|
<div id="msgError"></div>
|
|
30
38
|
<div id="msgNotification"></div>
|
|
31
39
|
</div>
|