@astropay/payments-lib 0.0.12 → 0.1.2

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
@@ -49,16 +49,6 @@ AstroPay's official frontend library that allows you to easily embed customizabl
49
49
 
50
50
  ### Prerequisites
51
51
 
52
- #### Dependencies
53
-
54
- This library requires the following peer dependencies:
55
-
56
- - @emotion/css: ^11.13.5
57
- - axios: ^1.7.9
58
- - bowser: ^2.11.0
59
- - i18next: ^24.2.2
60
- - qrcode: ^1.5.4
61
-
62
52
  #### DOM Requirements
63
53
 
64
54
  Before using the AstroPay Payment components, ensure your HTML document includes container elements where the components will be rendered. For example, to use the basic payment component, you need to have an element with `id="payment-container"` in your DOM:
@@ -86,7 +76,7 @@ yarn add @astropay/payments-lib
86
76
  Initialize the library with your API token and optional configuration:
87
77
 
88
78
  ```typescript
89
- import AstroPayCore, { AstroPayFullCheckout } from '@astropay/payments-lib';
79
+ import { AstroPayCore, AstroPayFullCheckout } from '@astropay/payments-lib';
90
80
 
91
81
  // Initialize the library
92
82
  AstroPayCore.init('app-id', {
@@ -94,6 +84,7 @@ AstroPayCore.init('app-id', {
94
84
  theme: 'light', // or 'dark'
95
85
  language: 'en', // or 'es', 'pt'
96
86
  currencyMode: 'iso', // or 'symbol'
87
+ tracking: true // or false to disable tracking
97
88
  });
98
89
 
99
90
  // Use the payment component in your application
@@ -238,6 +229,8 @@ AstroPayCore.init('app-id', {
238
229
  textSecondaryColor: '#666666',
239
230
  fontFamily: 'Arial, sans-serif',
240
231
  width: 500,
232
+ paddingWrapper: '12px',
233
+ borderRadiusWrapper: '4px'
241
234
  },
242
235
  });
243
236
  ```