@payconductor-sdk-web/library-rsc 1.0.2 → 1.0.3
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 +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -118,6 +118,7 @@ export default function CheckoutPage() {
|
|
|
118
118
|
theme={{ primaryColor: "#0066ff" }}
|
|
119
119
|
locale="en-US"
|
|
120
120
|
height="500px"
|
|
121
|
+
debug={true}
|
|
121
122
|
onReady={() => console.log("Ready")}
|
|
122
123
|
onError={(err) => console.error(err)}
|
|
123
124
|
onPaymentComplete={(result) => console.log(result)}
|
|
@@ -170,6 +171,7 @@ Client-side component that initializes the payment iframe. Marked with `"use cli
|
|
|
170
171
|
| `theme` | `PayConductorTheme` | Theme configuration |
|
|
171
172
|
| `locale` | `string` | Locale (e.g., 'en-US', 'pt-BR') |
|
|
172
173
|
| `height` | `string` | Iframe height (default: '500px') |
|
|
174
|
+
| `debug` | `boolean` | Enable debug mode with prefixed console.log for key events |
|
|
173
175
|
| `onReady` | `() => void` | Callback when iframe is ready |
|
|
174
176
|
| `onError` | `(error: Error) => void` | Error callback |
|
|
175
177
|
| `onPaymentComplete` | `(result: PaymentResult) => void` | Payment complete callback |
|