Skip to content

Commit 8161dca

Browse files
committed
Merge pull request #3718 from SalesforceCommerceCloud/rvishwanathbhat/payment-sheet-zone-id
W-21324157: Zone ID updated to use paymentconfig zoneID in Payment Sheet
2 parents 15bc56c + 1bf9ac7 commit 8161dca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/template-retail-react-app/app/pages/checkout/partials/sf-payments-sheet.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {useCurrentCustomer} from '@salesforce/retail-react-app/app/hooks/use-cur
2626
import {useCurrency} from '@salesforce/retail-react-app/app/hooks/use-currency'
2727
import {useCheckout} from '@salesforce/retail-react-app/app/pages/checkout/util/checkout-context'
2828
import {usePaymentConfiguration} from '@salesforce/commerce-sdk-react'
29-
import {useShopperConfiguration} from '@salesforce/retail-react-app/app/hooks/use-shopper-configuration'
3029
import {useSFPaymentsCountry} from '@salesforce/retail-react-app/app/hooks/use-sf-payments-country'
3130
import {
3231
STATUS_SUCCESS,
@@ -95,7 +94,7 @@ const SFPaymentsSheet = forwardRef((props, ref) => {
9594
}
9695
})
9796

98-
const zoneId = useShopperConfiguration('zoneId')
97+
const zoneId = paymentConfig?.zoneId
9998
const cardCaptureAutomatic = useAutomaticCapture()
10099
const futureUsageOffSession = useFutureUsageOffSession()
101100

0 commit comments

Comments
 (0)