@brissoto/pay-react-native 0.0.0-stage → 1.5.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.
Files changed (172) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +181 -2
  3. package/assets/brand/paypal-wordmark.png +0 -0
  4. package/assets/fonts/Figtree-Bold.ttf +0 -0
  5. package/assets/fonts/Figtree-ExtraBold.ttf +0 -0
  6. package/assets/fonts/Figtree-Medium.ttf +0 -0
  7. package/assets/fonts/Figtree-Regular.ttf +0 -0
  8. package/assets/fonts/Figtree-SemiBold.ttf +0 -0
  9. package/assets/fonts/OFL.txt +93 -0
  10. package/assets/logos/airtel.png +0 -0
  11. package/assets/logos/app-store.png +0 -0
  12. package/assets/logos/apple-pay.png +0 -0
  13. package/assets/logos/at.png +0 -0
  14. package/assets/logos/bancontact.png +0 -0
  15. package/assets/logos/card.png +0 -0
  16. package/assets/logos/cb.png +0 -0
  17. package/assets/logos/celtiis.png +0 -0
  18. package/assets/logos/eps.png +0 -0
  19. package/assets/logos/feexpay.png +0 -0
  20. package/assets/logos/google-pay.png +0 -0
  21. package/assets/logos/google-play.png +0 -0
  22. package/assets/logos/iapkit.png +0 -0
  23. package/assets/logos/ideal.png +0 -0
  24. package/assets/logos/mastercard.png +0 -0
  25. package/assets/logos/mixx.png +0 -0
  26. package/assets/logos/moov.png +0 -0
  27. package/assets/logos/mtn.png +0 -0
  28. package/assets/logos/mybank.png +0 -0
  29. package/assets/logos/nexus.png +0 -0
  30. package/assets/logos/orange.png +0 -0
  31. package/assets/logos/pawapay.png +0 -0
  32. package/assets/logos/paypal.png +0 -0
  33. package/assets/logos/telecel.png +0 -0
  34. package/assets/logos/tnm.png +0 -0
  35. package/assets/logos/visa.png +0 -0
  36. package/assets/logos/vodacom.png +0 -0
  37. package/assets/logos/wave.png +0 -0
  38. package/dist/checkout-core/hooks/use-checkout-controller.d.ts +9 -0
  39. package/dist/checkout-core/hooks/use-checkout-controller.js +563 -0
  40. package/dist/checkout-core/hooks/use-checkout-payment.d.ts +9 -0
  41. package/dist/checkout-core/hooks/use-checkout-payment.js +136 -0
  42. package/dist/checkout-core/hooks/use-checkout-timers.d.ts +15 -0
  43. package/dist/checkout-core/hooks/use-checkout-timers.js +44 -0
  44. package/dist/checkout-core/hooks/use-phone-number.d.ts +7 -0
  45. package/dist/checkout-core/hooks/use-phone-number.js +82 -0
  46. package/dist/checkout-core/messages/en.d.ts +302 -0
  47. package/dist/checkout-core/messages/en.js +301 -0
  48. package/dist/checkout-core/messages/fr.d.ts +4 -0
  49. package/dist/checkout-core/messages/fr.js +302 -0
  50. package/dist/checkout-core/models/checkout.card.utils.d.ts +7 -0
  51. package/dist/checkout-core/models/checkout.card.utils.js +25 -0
  52. package/dist/checkout-core/models/checkout.constants.d.ts +101 -0
  53. package/dist/checkout-core/models/checkout.constants.js +339 -0
  54. package/dist/checkout-core/models/checkout.country.utils.d.ts +17 -0
  55. package/dist/checkout-core/models/checkout.country.utils.js +45 -0
  56. package/dist/checkout-core/models/checkout.enum.d.ts +233 -0
  57. package/dist/checkout-core/models/checkout.enum.js +259 -0
  58. package/dist/checkout-core/models/checkout.fetch.utils.d.ts +6 -0
  59. package/dist/checkout-core/models/checkout.fetch.utils.js +22 -0
  60. package/dist/checkout-core/models/checkout.interface.d.ts +698 -0
  61. package/dist/checkout-core/models/checkout.interface.js +1 -0
  62. package/dist/checkout-core/models/checkout.money.utils.d.ts +7 -0
  63. package/dist/checkout-core/models/checkout.money.utils.js +21 -0
  64. package/dist/checkout-core/models/checkout.phone.utils.d.ts +33 -0
  65. package/dist/checkout-core/models/checkout.phone.utils.js +159 -0
  66. package/dist/checkout-core/models/checkout.view.utils.d.ts +77 -0
  67. package/dist/checkout-core/models/checkout.view.utils.js +331 -0
  68. package/dist/checkout-core/models/domain.enum.d.ts +106 -0
  69. package/dist/checkout-core/models/domain.enum.js +113 -0
  70. package/dist/components/BrissotoPayProvider.d.ts +8 -0
  71. package/dist/components/BrissotoPayProvider.js +39 -0
  72. package/dist/components/PaymentSheetModal.d.ts +9 -0
  73. package/dist/components/PaymentSheetModal.js +106 -0
  74. package/dist/components/SheetBone.d.ts +3 -0
  75. package/dist/components/SheetBone.js +12 -0
  76. package/dist/components/SheetButton.d.ts +7 -0
  77. package/dist/components/SheetButton.js +47 -0
  78. package/dist/components/SheetCardFields.d.ts +10 -0
  79. package/dist/components/SheetCardFields.js +86 -0
  80. package/dist/components/SheetChosenMethod.d.ts +3 -0
  81. package/dist/components/SheetChosenMethod.js +60 -0
  82. package/dist/components/SheetCodeField.d.ts +8 -0
  83. package/dist/components/SheetCodeField.js +98 -0
  84. package/dist/components/SheetContent.d.ts +3 -0
  85. package/dist/components/SheetContent.js +133 -0
  86. package/dist/components/SheetDial.d.ts +7 -0
  87. package/dist/components/SheetDial.js +36 -0
  88. package/dist/components/SheetFailed.d.ts +3 -0
  89. package/dist/components/SheetFailed.js +44 -0
  90. package/dist/components/SheetForm.d.ts +8 -0
  91. package/dist/components/SheetForm.js +141 -0
  92. package/dist/components/SheetGrabber.d.ts +2 -0
  93. package/dist/components/SheetGrabber.js +17 -0
  94. package/dist/components/SheetHeader.d.ts +7 -0
  95. package/dist/components/SheetHeader.js +83 -0
  96. package/dist/components/SheetIcon.d.ts +3 -0
  97. package/dist/components/SheetIcon.js +78 -0
  98. package/dist/components/SheetLayout.d.ts +11 -0
  99. package/dist/components/SheetLayout.js +63 -0
  100. package/dist/components/SheetLogo.d.ts +3 -0
  101. package/dist/components/SheetLogo.js +20 -0
  102. package/dist/components/SheetMessage.d.ts +3 -0
  103. package/dist/components/SheetMessage.js +15 -0
  104. package/dist/components/SheetMethodCard.d.ts +3 -0
  105. package/dist/components/SheetMethodCard.js +71 -0
  106. package/dist/components/SheetNameField.d.ts +7 -0
  107. package/dist/components/SheetNameField.js +48 -0
  108. package/dist/components/SheetPaypalButton.d.ts +3 -0
  109. package/dist/components/SheetPaypalButton.js +23 -0
  110. package/dist/components/SheetPhoneField.d.ts +3 -0
  111. package/dist/components/SheetPhoneField.js +59 -0
  112. package/dist/components/SheetPillSelect.d.ts +7 -0
  113. package/dist/components/SheetPillSelect.js +134 -0
  114. package/dist/components/SheetRow.d.ts +3 -0
  115. package/dist/components/SheetRow.js +28 -0
  116. package/dist/components/SheetSimulator.d.ts +6 -0
  117. package/dist/components/SheetSimulator.js +40 -0
  118. package/dist/components/SheetSkeleton.d.ts +5 -0
  119. package/dist/components/SheetSkeleton.js +23 -0
  120. package/dist/components/SheetStep.d.ts +6 -0
  121. package/dist/components/SheetStep.js +21 -0
  122. package/dist/components/SheetStoreTab.d.ts +7 -0
  123. package/dist/components/SheetStoreTab.js +27 -0
  124. package/dist/components/SheetSuccess.d.ts +3 -0
  125. package/dist/components/SheetSuccess.js +51 -0
  126. package/dist/components/SheetSummary.d.ts +3 -0
  127. package/dist/components/SheetSummary.js +32 -0
  128. package/dist/components/SheetTerminal.d.ts +6 -0
  129. package/dist/components/SheetTerminal.js +31 -0
  130. package/dist/components/SheetText.d.ts +5 -0
  131. package/dist/components/SheetText.js +27 -0
  132. package/dist/components/SheetToast.d.ts +7 -0
  133. package/dist/components/SheetToast.js +71 -0
  134. package/dist/components/SheetWaiting.d.ts +7 -0
  135. package/dist/components/SheetWaiting.js +88 -0
  136. package/dist/hooks/use-native-platform.d.ts +10 -0
  137. package/dist/hooks/use-native-platform.js +71 -0
  138. package/dist/hooks/use-payment-sheet.d.ts +4 -0
  139. package/dist/hooks/use-payment-sheet.js +10 -0
  140. package/dist/hooks/use-shake.d.ts +3 -0
  141. package/dist/hooks/use-shake.js +18 -0
  142. package/dist/hooks/use-sheet-motion.d.ts +7 -0
  143. package/dist/hooks/use-sheet-motion.js +62 -0
  144. package/dist/hooks/use-sheet-resize.d.ts +6 -0
  145. package/dist/hooks/use-sheet-resize.js +15 -0
  146. package/dist/hooks/use-sheet-room.d.ts +4 -0
  147. package/dist/hooks/use-sheet-room.js +8 -0
  148. package/dist/hooks/use-sheet-theme.d.ts +4 -0
  149. package/dist/hooks/use-sheet-theme.js +12 -0
  150. package/dist/hooks/use-step-slide.d.ts +16 -0
  151. package/dist/hooks/use-step-slide.js +50 -0
  152. package/dist/hooks/use-store-recovery.d.ts +9 -0
  153. package/dist/hooks/use-store-recovery.js +50 -0
  154. package/dist/hooks/use-store-tab.d.ts +11 -0
  155. package/dist/hooks/use-store-tab.js +112 -0
  156. package/dist/index.d.ts +3 -0
  157. package/dist/index.js +2 -0
  158. package/dist/models/sheet.constants.d.ts +125 -0
  159. package/dist/models/sheet.constants.js +204 -0
  160. package/dist/models/sheet.enum.d.ts +46 -0
  161. package/dist/models/sheet.enum.js +53 -0
  162. package/dist/models/sheet.interface.d.ts +426 -0
  163. package/dist/models/sheet.interface.js +1 -0
  164. package/dist/models/sheet.utils.d.ts +68 -0
  165. package/dist/models/sheet.utils.js +214 -0
  166. package/dist/services/checkout.service.d.ts +15 -0
  167. package/dist/services/checkout.service.js +96 -0
  168. package/dist/services/provider-window.service.d.ts +13 -0
  169. package/dist/services/provider-window.service.js +53 -0
  170. package/dist/services/store.service.d.ts +36 -0
  171. package/dist/services/store.service.js +107 -0
  172. package/package.json +73 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Brissoto Pay
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,182 @@
1
- # Temporary Holding Version
1
+ # @brissoto/pay-react-native
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Take payments in your Expo app through Brissoto Pay: a payment sheet slides up, the payer pays in it and never leaves the app. Pure JavaScript: it runs in Expo Go and any Expo app, with no native code and no rebuild.
4
+
5
+ ```sh
6
+ npx expo install @brissoto/pay-react-native convex expo-font react-native-webview
7
+ ```
8
+
9
+ ## 1. Create the payment on your server
10
+
11
+ The payment is created on your server with [`@brissoto/pay`](https://www.npmjs.com/package/@brissoto/pay), as for the web. Its key stays there: the app only gets the payment id.
12
+
13
+ ```ts
14
+ const payment = await pay.createPayment({
15
+ amount: 15000, // Mobile Money: 15 000 XAF
16
+ currency: 'XAF',
17
+ prices: [
18
+ { group: 'card', amount: 3000, currency: 'USD' }, // 30.00 USD
19
+ { group: 'paypal', amount: 3000, currency: 'USD' },
20
+ ],
21
+ orderRef: order.id,
22
+ returnUrl: `kola://orders/${order.id}`, // your app's deep link
23
+ items: [{ name: 'Ndolé', quantity: 1 }],
24
+ payer: { phone: '+237690000000' },
25
+ })
26
+
27
+ res.json({ paymentId: payment.id })
28
+ ```
29
+
30
+ The sheet shows the price of the method picked: see `prices` in [`@brissoto/pay`](https://www.npmjs.com/package/@brissoto/pay).
31
+
32
+ **A store product** (`product: 'gold_coins'` instead of an amount): the store tab is priced when the sheet first opens. With [expo-iap](https://www.npmjs.com/package/expo-iap) installed, the sheet reads the payer's App Store or Google Play country and the payment takes that country's store price, in its currency. Without expo-iap (Expo Go included), it stays at the product's home price. Mobile Money, Card and PayPal charge the `prices` sent with it, and show only with one.
33
+
34
+ With expo-iap, a product payment also gets a third tab, **App Store** on iPhone or **Google Play** on Android, at the store's own price. The purchase is finished only once the gateway has it paid. One the app never reported (killed in the store's sheet, no network) is sent again when `BrissotoPayProvider` next mounts; the app's own purchases are left alone.
35
+
36
+ ```sh
37
+ npx expo install expo-iap
38
+ ```
39
+
40
+ **PayPal** opens in an in-app browser with [expo-web-browser](https://docs.expo.dev/versions/latest/sdk/webbrowser/), which closes by itself once the payment is paid. Without it, PayPal opens in the phone's browser.
41
+
42
+ ```sh
43
+ npx expo install expo-web-browser
44
+ ```
45
+
46
+ ## 2. Wrap the app in the provider
47
+
48
+ ```tsx
49
+ import { BrissotoPayProvider } from '@brissoto/pay-react-native'
50
+
51
+ export default function RootLayout() {
52
+ return (
53
+ <BrissotoPayProvider>
54
+ <Stack />
55
+ </BrissotoPayProvider>
56
+ )
57
+ }
58
+ ```
59
+
60
+ ## 3. Open the payment sheet
61
+
62
+ ```tsx
63
+ import { usePaymentSheet } from '@brissoto/pay-react-native'
64
+
65
+ function PayButton({ orderId }: { orderId: string }) {
66
+ const { presentPayment } = usePaymentSheet()
67
+
68
+ const pay = async () => {
69
+ const { paymentId } = await api.post(`/orders/${orderId}/pay`)
70
+ const result = await presentPayment({ paymentId })
71
+ if (result.status === 'paid') router.push(`/orders/${orderId}`)
72
+ }
73
+
74
+ return <Button title="Pay" onPress={pay} />
75
+ }
76
+ ```
77
+
78
+ `presentPayment` resolves when the sheet closes. One sheet at a time: a second call while one is open rejects.
79
+
80
+ ## App Store and Google Play
81
+
82
+ A store product sells in the sheet's App Store or Google Play tab, through your own [IAPKit](https://kit.openiap.dev) project. Set it up once per app, in this order.
83
+
84
+ ### App Store Connect
85
+
86
+ 1. Apps, New App: the bundle ID is your `ios.bundleIdentifier`.
87
+ 2. Business: sign the Paid Apps Agreement, or no purchase goes through, sandbox included.
88
+ 3. Users and Access, Integrations, In-App Purchase: generate a key; keep its Key ID, the Issuer ID and the `.p8`.
89
+ 4. Users and Access, Integrations, App Store Connect API, Team Keys: a key with the App Manager role; keep its Key ID, the Issuer ID and the `.p8`.
90
+ 5. Users and Access, Sandbox: add a test account to buy with.
91
+
92
+ No in-app purchase to add here: the dashboard creates the consumable.
93
+
94
+ ### Google Play Console
95
+
96
+ 1. Create the app; Monetization setup: a payments profile.
97
+ 2. Testing, Internal testing: upload a build with expo-iap (an `.aab`) and add your testers.
98
+ 3. Settings, License testing: add the testers' Google accounts, response `LICENSED`.
99
+ 4. Google Cloud console: turn on the Google Play Android Developer API, create a service account and a JSON key.
100
+ 5. Users and permissions: invite the service account's email with View app information, View financial data, Manage orders and Manage store presence.
101
+
102
+ ### IAPKit
103
+
104
+ 1. New project for the app.
105
+ 2. Apple: bundle ID, App Apple ID, the In-App Purchase key, the App Store Connect API key and a review screenshot.
106
+ 3. Google: package name and the service account's JSON key.
107
+ 4. API keys: copy the secret key (`openiap-kit_sk_…`).
108
+ 5. Webhooks: add a destination at `<Convex site URL>/v1/callbacks/iapkit` (the Stores tab shows it), copy its signing secret (`whsec_…`).
109
+
110
+ ### Dashboard
111
+
112
+ 1. Providers, IAPKit: its server address and Convex address.
113
+ 2. Apps, your app, Stores: the IAPKit secret key, the signing secret, the App Store Connect API key and the service account's JSON key, then Check connection.
114
+ 3. Stores, Add product: an id (`gold_coins`), a name and a home price; it is pushed to both stores.
115
+ 4. Store prices: read every night, then product payments open.
116
+ 5. Go live: once the App Store approved the product and Google Play has it active.
117
+
118
+ ### Code
119
+
120
+ ```sh
121
+ npx expo install expo-iap expo-dev-client
122
+ ```
123
+
124
+ Add `"plugins": ["expo-iap"]` to `app.json` and run a development build (`npx expo run:ios`, `npx expo run:android`): Expo Go has no store.
125
+
126
+ Create the payment on your server with the product's id:
127
+
128
+ ```ts
129
+ const payment = await pay.createPayment({
130
+ product: 'gold_coins',
131
+ // The other tabs: none without a price.
132
+ prices: [{ group: 'mobile_money', amount: 1000, currency: 'XAF' }],
133
+ orderRef: order.id,
134
+ returnUrl: `kola://orders/${order.id}`,
135
+ })
136
+ ```
137
+
138
+ Open the sheet with it: `presentPayment({ paymentId })`. Ship on the `payment.paid` webhook; a store refund, or Apple refund request, sends `payment.refund_requested` once.
139
+
140
+ ## Results
141
+
142
+ | `result.status` | When |
143
+ | --------------- | ---------------------------------------------------------------------------------------------- |
144
+ | `paid` | The payment is paid. |
145
+ | `pending` | The payer closed the sheet while a prompt waited on their phone: it may still go through. |
146
+ | `closed` | The payer closed the sheet with the payment still open. |
147
+ | `cancelled` | The payment was cancelled. |
148
+ | `expired` | The payment expired. |
149
+ | `locked` | Too many failed tries: the payment can no longer be paid. |
150
+ | `refunded` | A store refunded the payment. |
151
+ | `unavailable` | No method could take the payment (`payment.unavailable`): the sheet said so. Nothing was paid. |
152
+
153
+ When the sheet could not show the payment, `status` is `closed` and `result.error` says why: `not_found` (no payment has this id) or `network` (it could not load).
154
+
155
+ **The result proves nothing.** It comes from the phone. Ship the order on the `payment.paid` webhook, or once `getPayment` on your server says `paid`. Use the result only to move the payer on.
156
+
157
+ ## Deep link return URL
158
+
159
+ The sheet closes by itself; `returnUrl` brings the payer back when they pay on the checkout link (`checkoutUrl`) in a browser instead. Pass your app's deep link:
160
+
161
+ 1. Add your app's scheme (`scheme` in `app.json`) to the server's return URLs in the dashboard (Apps, your app, Integration), the scheme alone: `kola://`.
162
+ 2. Any link on it is then accepted: `kola://orders/12`.
163
+
164
+ ## Test with the Simulator
165
+
166
+ A payment created with a `bp_test_…` key opens with a Test badge and no money moves. Mobile Money pays on the Simulator: pick what happens to it (Approve, Decline, Wrong PIN, Low balance…) and the sheet follows. PayPal and cards pay on PayPal's sandbox, with a sandbox buyer; App Store and Google Play on their sandboxes, with a sandbox tester on a development build. The app changes nothing: the payment decides.
167
+
168
+ ## Language and theme
169
+
170
+ The sheet takes the payment's `language` and `theme`. Without them it follows the phone: French or English (English for any other language), light or dark.
171
+
172
+ ## Options
173
+
174
+ `BrissotoPayProvider` takes:
175
+
176
+ | Option | Default | What it is |
177
+ | ------ | ------------------------------ | ------------------------------------------------------------------------------------------------------- |
178
+ | `url` | `https://api-pay.brissoto.com` | The Brissoto Pay backend. One serves Live and Test. Set it only to point the sheet at a dev deployment. |
179
+
180
+ ```tsx
181
+ <BrissotoPayProvider url={process.env.EXPO_PUBLIC_BRISSOTO_PAY_URL}>
182
+ ```
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,93 @@
1
+ Copyright 2022 The Figtree Project Authors (https://github.com/erikdkennedy/figtree)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,9 @@
1
+ import type { CheckoutControllerOptions, CheckoutCore, CheckoutView } from '../models/checkout.interface.js';
2
+ /**
3
+ * The whole checkout for one payment, on any platform: the gateway's live
4
+ * view of it, what the payer does, the number, the clocks, and every action
5
+ * the screens can take. What only a platform can do (coming back, the
6
+ * clipboard, leaving for the app, the card fields page) comes in `platform`.
7
+ * The language is not here: it comes from the IntlProvider around it.
8
+ */
9
+ export declare function useCheckoutController(view: CheckoutView | null | undefined, { clues, calls, platform }: CheckoutControllerOptions): CheckoutCore;