@bemony/payment-form-react 0.3.1 → 0.4.0-next.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 +18 -16
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -216,21 +216,21 @@ O hook só pode ser usado dentro de `BemonyPaymentFormProvider`.
|
|
|
216
216
|
|
|
217
217
|
## Props
|
|
218
218
|
|
|
219
|
-
| Prop | Tipo
|
|
220
|
-
| ------------------- |
|
|
221
|
-
| `clientSecret` | `string`
|
|
222
|
-
| `environment` | `'sandbox' \| 'production'
|
|
223
|
-
| `version` | `'2026-09-25' \| '2026-10-20' \| '2026-10-30'`
|
|
224
|
-
| `riskCollectors` | `readonly RiskCollector[]`
|
|
225
|
-
| `appearance` | `PaymentFormAppearance`
|
|
226
|
-
| `threeDS` | `{ presentation?: 'modal' \| 'inline' }`
|
|
227
|
-
| `className` | `string`
|
|
228
|
-
| `onReady` | `() => void`
|
|
229
|
-
| `onCardStateChange` | `(state: CardState) => void`
|
|
230
|
-
| `onStatusChange` | `(status) => void`
|
|
231
|
-
| `onSuccess` | `(payment) => void`
|
|
232
|
-
| `onError` | `(error) => void`
|
|
233
|
-
| `onEvent` | `(event) => void`
|
|
219
|
+
| Prop | Tipo | Padrão | Descrição |
|
|
220
|
+
| ------------------- | ---------------------------------------------- | ------------ | ------------------------------------------ |
|
|
221
|
+
| `clientSecret` | `string` | obrigatório | segredo público da CheckoutSession |
|
|
222
|
+
| `environment` | `'sandbox' \| 'production'` | `sandbox` | infraestrutura hospedada |
|
|
223
|
+
| `version` | `'2026-09-25' \| '2026-10-20' \| '2026-10-30'` | `2026-10-30` | compatibilidade do protocolo hospedado |
|
|
224
|
+
| `riskCollectors` | `readonly RiskCollector[]` | ausente | instruções públicas devolvidas pela sessão |
|
|
225
|
+
| `appearance` | `PaymentFormAppearance` | sistema | tema e variáveis visuais |
|
|
226
|
+
| `threeDS` | `{ presentation?: 'modal' \| 'inline' }` | `modal` | apresentação do challenge |
|
|
227
|
+
| `className` | `string` | ausente | classe aplicada ao container React |
|
|
228
|
+
| `onReady` | `() => void` | ausente | iframe e Card Frame prontos |
|
|
229
|
+
| `onCardStateChange` | `(state: CardState) => void` | ausente | completude e validade dos campos |
|
|
230
|
+
| `onStatusChange` | `(status) => void` | ausente | transição do estado público |
|
|
231
|
+
| `onSuccess` | `(payment) => void` | ausente | pagamento `AUTHORIZED` ou `CAPTURED` |
|
|
232
|
+
| `onError` | `(error) => void` | ausente | mesmo erro público rejeitado por `pay()` |
|
|
233
|
+
| `onEvent` | `(event) => void` | ausente | telemetria segura de montagem/pagamento |
|
|
234
234
|
|
|
235
235
|
No Provider, `children` também é obrigatório. No componente standalone, `clientSecret` é
|
|
236
236
|
obrigatório; dentro do Provider, a configuração vem do contexto.
|
|
@@ -262,7 +262,9 @@ o contrato HTTP: todos os requests servidor→Routing API usam `2026-11-02`.
|
|
|
262
262
|
## Ambientes
|
|
263
263
|
|
|
264
264
|
- `sandbox`: padrão compatível atual conectado à Railway;
|
|
265
|
-
- `production`
|
|
265
|
+
- `production` usa a AWS em `https://embed-payment-orchestration.bemony.com`, com reserva em `https://wrapper.oakvesselhq.com`.
|
|
266
|
+
- `bemony_prod` usa `https://routing-embed-form.bemony.com`, com reserva em `https://routing-embed-form.bmny.io`;
|
|
267
|
+
- `bemony_hom` usa `https://routing-embed-form-homolog.bemony.com`, com reserva em `https://routing-embed-form-homolog.bmny.io`.
|
|
266
268
|
|
|
267
269
|
O componente nunca recebe endpoint ou origem arbitrária. A configuração dos hosts pertence aos
|
|
268
270
|
deploys Bemony.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bemony/payment-form-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-next.0",
|
|
4
4
|
"description": "Official React adapter for the hosted Bemony Payment Form.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bemony",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@bemony/payment-form": "
|
|
37
|
+
"@bemony/payment-form": "0.4.0-next.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": ">=19.0.0 <20.0.0",
|