@flopay/react 0.4.9 → 0.4.11
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -144,6 +144,12 @@ interface FloPayCheckoutProps {
|
|
|
144
144
|
}) => React.ReactNode;
|
|
145
145
|
/** Called when the session has already been completed. Receives the successUrl. */
|
|
146
146
|
onSessionCompleted?: (successUrl: string) => void;
|
|
147
|
+
/**
|
|
148
|
+
* @deprecated No longer used. The Stripe publishable key is sourced exclusively
|
|
149
|
+
* from the checkout session's `gatewayData.publishableKey`. Accepted only for
|
|
150
|
+
* backward compatibility with older consumer code — the value is ignored.
|
|
151
|
+
*/
|
|
152
|
+
fallbackPublishableKey?: string;
|
|
147
153
|
}
|
|
148
154
|
/**
|
|
149
155
|
* All-in-one checkout component. Fetches the session, initializes the
|
package/dist/index.d.ts
CHANGED
|
@@ -144,6 +144,12 @@ interface FloPayCheckoutProps {
|
|
|
144
144
|
}) => React.ReactNode;
|
|
145
145
|
/** Called when the session has already been completed. Receives the successUrl. */
|
|
146
146
|
onSessionCompleted?: (successUrl: string) => void;
|
|
147
|
+
/**
|
|
148
|
+
* @deprecated No longer used. The Stripe publishable key is sourced exclusively
|
|
149
|
+
* from the checkout session's `gatewayData.publishableKey`. Accepted only for
|
|
150
|
+
* backward compatibility with older consumer code — the value is ignored.
|
|
151
|
+
*/
|
|
152
|
+
fallbackPublishableKey?: string;
|
|
147
153
|
}
|
|
148
154
|
/**
|
|
149
155
|
* All-in-one checkout component. Fetches the session, initializes the
|
package/dist/index.mjs
CHANGED
|
@@ -2191,7 +2191,7 @@ async function processSavedPaymentWithIntent({
|
|
|
2191
2191
|
if (!confirmResult.paymentIntentId || confirmResult.status !== "succeeded" && confirmResult.status !== "processing" && confirmResult.status !== "requires_capture") {
|
|
2192
2192
|
throw Object.assign(
|
|
2193
2193
|
new FloPayError3(
|
|
2194
|
-
`
|
|
2194
|
+
`Unfortunately, your payment could not be processed. Please try again using a different payment method or contact your bank for assistance. If the issue persists, feel free to reach out to us for support.`,
|
|
2195
2195
|
"api_error",
|
|
2196
2196
|
{
|
|
2197
2197
|
code: confirmResult.status === "requires_action" ? "authentication_required" : void 0
|