@mainmoneyapp/js-checkout 0.2.0 → 0.2.1
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 +5 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @mainmoneyapp/js-checkout
|
|
2
2
|
|
|
3
3
|
Headless checkout and vanilla `mountCheckout`. Import
|
|
4
|
-
`@mainmoneyapp/js-checkout/styles.css`. See the [root README](../../README.md).
|
|
4
|
+
`@mainmoneyapp/js-checkout/styles.css`. See the [root README](../../README.md) and the [full documentation](../../docs/README.md).
|
|
5
5
|
|
|
6
6
|
## Layouts
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ Headless checkout and vanilla `mountCheckout`. Import
|
|
|
9
9
|
|
|
10
10
|
- **`form`** (default for `operation: "deposit"`): one page with Card / Mobile money /
|
|
11
11
|
MainMoney tabs, optional receipt email, dial-code dropdown plus local phone number,
|
|
12
|
-
fee box (
|
|
12
|
+
fee box (Processing fee / You pay), provider logos for the selected
|
|
13
13
|
country, a Pay button, an EN/FR toggle and footer links.
|
|
14
14
|
- **`wizard`** (default for payouts): the step-by-step flow. Force either with `layout`.
|
|
15
15
|
|
|
@@ -27,8 +27,9 @@ Headless checkout and vanilla `mountCheckout`. Import
|
|
|
27
27
|
backends are integrated.
|
|
28
28
|
- Countries, flags and provider logos: `/countries` and `/providers`, already limited to
|
|
29
29
|
what the merchant may use.
|
|
30
|
-
- Fee box: `
|
|
31
|
-
|
|
30
|
+
- Fee box: `processing_fee` and `total_to_pay` from `/fees/simulate` (what the merchant receives is never shown).
|
|
31
|
+
`fee_bearer` is exposed as `feeBearer` on the snapshot but does not change the deposit request; the deposit is
|
|
32
|
+
always created with the order `amount` (a merchant fee goes in `fees`).
|
|
32
33
|
- The phone number is sent once as `<dial code><local number>`; typing `+243...` or `0...`
|
|
33
34
|
is handled.
|
|
34
35
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mainmoneyapp/js-checkout",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Checkout wizard for the MainMoney JS/TS frontend SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@mainmoneyapp/js-core": "0.2.
|
|
45
|
-
"@mainmoneyapp/js-http": "0.2.
|
|
44
|
+
"@mainmoneyapp/js-core": "0.2.1",
|
|
45
|
+
"@mainmoneyapp/js-http": "0.2.1"
|
|
46
46
|
}
|
|
47
47
|
}
|