mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Move card details and shipping address to the Redux store
This commit is contained in:
parent
75960fc4a4
commit
5a31fdd183
6 changed files with 122 additions and 72 deletions
|
@ -6,7 +6,7 @@ import { setIsGuest, setIsEmailLookupCompleted } from '../stores/axoStore';
|
|||
export const createEmailLookupHandler = (
|
||||
fastlaneSdk,
|
||||
setShippingAddress,
|
||||
setCard,
|
||||
setCardDetails,
|
||||
snapshotFields,
|
||||
wooShippingAddress,
|
||||
wooBillingAddress,
|
||||
|
@ -68,7 +68,7 @@ export const createEmailLookupHandler = (
|
|||
setShippingAddress( profileData.shippingAddress );
|
||||
}
|
||||
if ( profileData && profileData.card ) {
|
||||
setCard( profileData.card );
|
||||
setCardDetails( profileData.card );
|
||||
}
|
||||
|
||||
console.log( 'Profile Data:', profileData );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue