@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 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
- merchantID: "merchantID",
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
- // Start the payment (open the modal)
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
- paymentID: "paymentID",
31
+ paymentId: payment.id,
32
32
  });
33
33
  ```
34
34