@alma/in-page 2.8.0 → 2.10.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 +4 -4
- package/dist/index.es.js +654 -210
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +152 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/src/Embedded/eligibility.d.ts +31 -0
- package/dist/src/Embedded/fallback.d.ts +7 -0
- package/dist/src/Embedded/font.d.ts +10 -0
- package/dist/src/Embedded/render.d.ts +22 -0
- package/dist/src/Embedded/style.d.ts +1 -0
- package/dist/src/helpers.d.ts +9 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/messages/listener.d.ts +2 -2
- package/dist/src/store.d.ts +1 -5
- package/dist/src/translations.d.ts +19 -0
- package/dist/src/types.d.ts +3 -7
- package/dist/src/unmount.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/messages/send.d.ts +0 -5
package/README.md
CHANGED
|
@@ -20,15 +20,15 @@ InPage is a payment method that allows you to integrate the Alma experience dire
|
|
|
20
20
|
|
|
21
21
|
```js
|
|
22
22
|
const inPage = Alma.InPage.initialize({
|
|
23
|
-
|
|
23
|
+
merchantId: "merchantId",
|
|
24
24
|
selector: "#alma-inpage",
|
|
25
25
|
amountInCents: 10000, // 100€
|
|
26
26
|
installmentsCount: 3,
|
|
27
27
|
});
|
|
28
|
-
// When your customer clicks on `pay` button, call the API to generate a payment
|
|
29
|
-
//
|
|
28
|
+
// When your customer clicks on `pay` button, call the API to generate a payment,
|
|
29
|
+
// then start the payment (open the modal) with the id of the created payment
|
|
30
30
|
inPage.startPayment({
|
|
31
|
-
|
|
31
|
+
paymentId: payment.id,
|
|
32
32
|
});
|
|
33
33
|
```
|
|
34
34
|
|