tf-checkout-react 1.7.17 → 1.7.19
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/tf-checkout-react.cjs.development.js +7 -3
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +7 -3
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/billing-info-container/index.tsx +6 -2
package/package.json
CHANGED
|
@@ -906,6 +906,10 @@ const BillingInfoContainer = React.memo(
|
|
|
906
906
|
)
|
|
907
907
|
setCheckoutData(checkoutDataObj)
|
|
908
908
|
setSingleCheckoutAddOns(mergedAddOns)
|
|
909
|
+
const updatedAttributes = _get(checkoutResponse, 'data.attributes', {})
|
|
910
|
+
if (updatedAttributes.additional_payment_information) {
|
|
911
|
+
setCheckoutUpdateData(updatedAttributes)
|
|
912
|
+
}
|
|
909
913
|
}
|
|
910
914
|
} catch (error) {
|
|
911
915
|
const errorMessage = _get(
|
|
@@ -929,9 +933,9 @@ const BillingInfoContainer = React.memo(
|
|
|
929
933
|
)
|
|
930
934
|
|
|
931
935
|
const onAddOnSelect = useCallback(
|
|
932
|
-
(id: string, value: string,
|
|
936
|
+
(id: string, value: string, _addon: any, fieldUpdates: Record<string, any> = {}) => {
|
|
933
937
|
const quantity = parseInt(value) || 0
|
|
934
|
-
const addonId =
|
|
938
|
+
const addonId = id
|
|
935
939
|
|
|
936
940
|
// Get current add-ons and their custom fields
|
|
937
941
|
const currentAddOns = JSON.parse(localStorage.getItem('add_ons') || '{}')
|