@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.
- package/LICENSE +21 -0
- package/README.md +181 -2
- package/assets/brand/paypal-wordmark.png +0 -0
- package/assets/fonts/Figtree-Bold.ttf +0 -0
- package/assets/fonts/Figtree-ExtraBold.ttf +0 -0
- package/assets/fonts/Figtree-Medium.ttf +0 -0
- package/assets/fonts/Figtree-Regular.ttf +0 -0
- package/assets/fonts/Figtree-SemiBold.ttf +0 -0
- package/assets/fonts/OFL.txt +93 -0
- package/assets/logos/airtel.png +0 -0
- package/assets/logos/app-store.png +0 -0
- package/assets/logos/apple-pay.png +0 -0
- package/assets/logos/at.png +0 -0
- package/assets/logos/bancontact.png +0 -0
- package/assets/logos/card.png +0 -0
- package/assets/logos/cb.png +0 -0
- package/assets/logos/celtiis.png +0 -0
- package/assets/logos/eps.png +0 -0
- package/assets/logos/feexpay.png +0 -0
- package/assets/logos/google-pay.png +0 -0
- package/assets/logos/google-play.png +0 -0
- package/assets/logos/iapkit.png +0 -0
- package/assets/logos/ideal.png +0 -0
- package/assets/logos/mastercard.png +0 -0
- package/assets/logos/mixx.png +0 -0
- package/assets/logos/moov.png +0 -0
- package/assets/logos/mtn.png +0 -0
- package/assets/logos/mybank.png +0 -0
- package/assets/logos/nexus.png +0 -0
- package/assets/logos/orange.png +0 -0
- package/assets/logos/pawapay.png +0 -0
- package/assets/logos/paypal.png +0 -0
- package/assets/logos/telecel.png +0 -0
- package/assets/logos/tnm.png +0 -0
- package/assets/logos/visa.png +0 -0
- package/assets/logos/vodacom.png +0 -0
- package/assets/logos/wave.png +0 -0
- package/dist/checkout-core/hooks/use-checkout-controller.d.ts +9 -0
- package/dist/checkout-core/hooks/use-checkout-controller.js +563 -0
- package/dist/checkout-core/hooks/use-checkout-payment.d.ts +9 -0
- package/dist/checkout-core/hooks/use-checkout-payment.js +136 -0
- package/dist/checkout-core/hooks/use-checkout-timers.d.ts +15 -0
- package/dist/checkout-core/hooks/use-checkout-timers.js +44 -0
- package/dist/checkout-core/hooks/use-phone-number.d.ts +7 -0
- package/dist/checkout-core/hooks/use-phone-number.js +82 -0
- package/dist/checkout-core/messages/en.d.ts +302 -0
- package/dist/checkout-core/messages/en.js +301 -0
- package/dist/checkout-core/messages/fr.d.ts +4 -0
- package/dist/checkout-core/messages/fr.js +302 -0
- package/dist/checkout-core/models/checkout.card.utils.d.ts +7 -0
- package/dist/checkout-core/models/checkout.card.utils.js +25 -0
- package/dist/checkout-core/models/checkout.constants.d.ts +101 -0
- package/dist/checkout-core/models/checkout.constants.js +339 -0
- package/dist/checkout-core/models/checkout.country.utils.d.ts +17 -0
- package/dist/checkout-core/models/checkout.country.utils.js +45 -0
- package/dist/checkout-core/models/checkout.enum.d.ts +233 -0
- package/dist/checkout-core/models/checkout.enum.js +259 -0
- package/dist/checkout-core/models/checkout.fetch.utils.d.ts +6 -0
- package/dist/checkout-core/models/checkout.fetch.utils.js +22 -0
- package/dist/checkout-core/models/checkout.interface.d.ts +698 -0
- package/dist/checkout-core/models/checkout.interface.js +1 -0
- package/dist/checkout-core/models/checkout.money.utils.d.ts +7 -0
- package/dist/checkout-core/models/checkout.money.utils.js +21 -0
- package/dist/checkout-core/models/checkout.phone.utils.d.ts +33 -0
- package/dist/checkout-core/models/checkout.phone.utils.js +159 -0
- package/dist/checkout-core/models/checkout.view.utils.d.ts +77 -0
- package/dist/checkout-core/models/checkout.view.utils.js +331 -0
- package/dist/checkout-core/models/domain.enum.d.ts +106 -0
- package/dist/checkout-core/models/domain.enum.js +113 -0
- package/dist/components/BrissotoPayProvider.d.ts +8 -0
- package/dist/components/BrissotoPayProvider.js +39 -0
- package/dist/components/PaymentSheetModal.d.ts +9 -0
- package/dist/components/PaymentSheetModal.js +106 -0
- package/dist/components/SheetBone.d.ts +3 -0
- package/dist/components/SheetBone.js +12 -0
- package/dist/components/SheetButton.d.ts +7 -0
- package/dist/components/SheetButton.js +47 -0
- package/dist/components/SheetCardFields.d.ts +10 -0
- package/dist/components/SheetCardFields.js +86 -0
- package/dist/components/SheetChosenMethod.d.ts +3 -0
- package/dist/components/SheetChosenMethod.js +60 -0
- package/dist/components/SheetCodeField.d.ts +8 -0
- package/dist/components/SheetCodeField.js +98 -0
- package/dist/components/SheetContent.d.ts +3 -0
- package/dist/components/SheetContent.js +133 -0
- package/dist/components/SheetDial.d.ts +7 -0
- package/dist/components/SheetDial.js +36 -0
- package/dist/components/SheetFailed.d.ts +3 -0
- package/dist/components/SheetFailed.js +44 -0
- package/dist/components/SheetForm.d.ts +8 -0
- package/dist/components/SheetForm.js +141 -0
- package/dist/components/SheetGrabber.d.ts +2 -0
- package/dist/components/SheetGrabber.js +17 -0
- package/dist/components/SheetHeader.d.ts +7 -0
- package/dist/components/SheetHeader.js +83 -0
- package/dist/components/SheetIcon.d.ts +3 -0
- package/dist/components/SheetIcon.js +78 -0
- package/dist/components/SheetLayout.d.ts +11 -0
- package/dist/components/SheetLayout.js +63 -0
- package/dist/components/SheetLogo.d.ts +3 -0
- package/dist/components/SheetLogo.js +20 -0
- package/dist/components/SheetMessage.d.ts +3 -0
- package/dist/components/SheetMessage.js +15 -0
- package/dist/components/SheetMethodCard.d.ts +3 -0
- package/dist/components/SheetMethodCard.js +71 -0
- package/dist/components/SheetNameField.d.ts +7 -0
- package/dist/components/SheetNameField.js +48 -0
- package/dist/components/SheetPaypalButton.d.ts +3 -0
- package/dist/components/SheetPaypalButton.js +23 -0
- package/dist/components/SheetPhoneField.d.ts +3 -0
- package/dist/components/SheetPhoneField.js +59 -0
- package/dist/components/SheetPillSelect.d.ts +7 -0
- package/dist/components/SheetPillSelect.js +134 -0
- package/dist/components/SheetRow.d.ts +3 -0
- package/dist/components/SheetRow.js +28 -0
- package/dist/components/SheetSimulator.d.ts +6 -0
- package/dist/components/SheetSimulator.js +40 -0
- package/dist/components/SheetSkeleton.d.ts +5 -0
- package/dist/components/SheetSkeleton.js +23 -0
- package/dist/components/SheetStep.d.ts +6 -0
- package/dist/components/SheetStep.js +21 -0
- package/dist/components/SheetStoreTab.d.ts +7 -0
- package/dist/components/SheetStoreTab.js +27 -0
- package/dist/components/SheetSuccess.d.ts +3 -0
- package/dist/components/SheetSuccess.js +51 -0
- package/dist/components/SheetSummary.d.ts +3 -0
- package/dist/components/SheetSummary.js +32 -0
- package/dist/components/SheetTerminal.d.ts +6 -0
- package/dist/components/SheetTerminal.js +31 -0
- package/dist/components/SheetText.d.ts +5 -0
- package/dist/components/SheetText.js +27 -0
- package/dist/components/SheetToast.d.ts +7 -0
- package/dist/components/SheetToast.js +71 -0
- package/dist/components/SheetWaiting.d.ts +7 -0
- package/dist/components/SheetWaiting.js +88 -0
- package/dist/hooks/use-native-platform.d.ts +10 -0
- package/dist/hooks/use-native-platform.js +71 -0
- package/dist/hooks/use-payment-sheet.d.ts +4 -0
- package/dist/hooks/use-payment-sheet.js +10 -0
- package/dist/hooks/use-shake.d.ts +3 -0
- package/dist/hooks/use-shake.js +18 -0
- package/dist/hooks/use-sheet-motion.d.ts +7 -0
- package/dist/hooks/use-sheet-motion.js +62 -0
- package/dist/hooks/use-sheet-resize.d.ts +6 -0
- package/dist/hooks/use-sheet-resize.js +15 -0
- package/dist/hooks/use-sheet-room.d.ts +4 -0
- package/dist/hooks/use-sheet-room.js +8 -0
- package/dist/hooks/use-sheet-theme.d.ts +4 -0
- package/dist/hooks/use-sheet-theme.js +12 -0
- package/dist/hooks/use-step-slide.d.ts +16 -0
- package/dist/hooks/use-step-slide.js +50 -0
- package/dist/hooks/use-store-recovery.d.ts +9 -0
- package/dist/hooks/use-store-recovery.js +50 -0
- package/dist/hooks/use-store-tab.d.ts +11 -0
- package/dist/hooks/use-store-tab.js +112 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -0
- package/dist/models/sheet.constants.d.ts +125 -0
- package/dist/models/sheet.constants.js +204 -0
- package/dist/models/sheet.enum.d.ts +46 -0
- package/dist/models/sheet.enum.js +53 -0
- package/dist/models/sheet.interface.d.ts +426 -0
- package/dist/models/sheet.interface.js +1 -0
- package/dist/models/sheet.utils.d.ts +68 -0
- package/dist/models/sheet.utils.js +214 -0
- package/dist/services/checkout.service.d.ts +15 -0
- package/dist/services/checkout.service.js +96 -0
- package/dist/services/provider-window.service.d.ts +13 -0
- package/dist/services/provider-window.service.js +53 -0
- package/dist/services/store.service.d.ts +36 -0
- package/dist/services/store.service.js +107 -0
- 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
|
-
#
|
|
1
|
+
# @brissoto/pay-react-native
|
|
2
2
|
|
|
3
|
-
|
|
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
|
|
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;
|