@reevit/react 0.2.6 → 0.2.7
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.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -888,10 +888,16 @@ function ReevitCheckout({
|
|
|
888
888
|
{
|
|
889
889
|
publicKey: pspKey,
|
|
890
890
|
email,
|
|
891
|
-
amount,
|
|
892
|
-
currency,
|
|
891
|
+
amount: paymentIntent?.amount ?? amount,
|
|
892
|
+
currency: paymentIntent?.currency ?? currency,
|
|
893
893
|
reference,
|
|
894
|
-
metadata
|
|
894
|
+
metadata: {
|
|
895
|
+
...metadata,
|
|
896
|
+
// Override with correct payment intent ID for webhook routing
|
|
897
|
+
// This ensures Paystack webhook includes the correct ID to find the payment
|
|
898
|
+
payment_id: paymentIntent?.id,
|
|
899
|
+
connection_id: paymentIntent?.connectionId ?? metadata?.connection_id
|
|
900
|
+
},
|
|
895
901
|
channels: selectedMethod === "mobile_money" ? ["mobile_money"] : ["card"],
|
|
896
902
|
onSuccess: handlePSPSuccess,
|
|
897
903
|
onError: handlePSPError,
|