File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
checkout-buttons/strategies/googlepay
customer/strategies/googlepay Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,11 @@ export default class GooglePayButtonStrategy extends CheckoutButtonStrategy {
83
83
84
84
return this . _googlePayPaymentProcessor . displayWallet ( )
85
85
. then ( paymentData => this . _googlePayPaymentProcessor . handleSuccess ( paymentData )
86
- . then ( ( ) => this . _googlePayPaymentProcessor . updateShippingAddress ( paymentData . shippingAddress ) ) )
86
+ . then ( ( ) => {
87
+ if ( paymentData . shippingAddress ) {
88
+ this . _googlePayPaymentProcessor . updateShippingAddress ( paymentData . shippingAddress ) ;
89
+ }
90
+ } ) )
87
91
. then ( ( ) => this . _onPaymentSelectComplete ( ) )
88
92
. catch ( error => this . _onError ( error ) ) ;
89
93
}
Original file line number Diff line number Diff line change @@ -123,7 +123,11 @@ export default class GooglePayCustomerStrategy extends CustomerStrategy {
123
123
124
124
return this . _googlePayPaymentProcessor . displayWallet ( )
125
125
. then ( paymentData => this . _googlePayPaymentProcessor . handleSuccess ( paymentData )
126
- . then ( ( ) => this . _googlePayPaymentProcessor . updateShippingAddress ( paymentData . shippingAddress ) ) )
126
+ . then ( ( ) => {
127
+ if ( paymentData . shippingAddress ) {
128
+ this . _googlePayPaymentProcessor . updateShippingAddress ( paymentData . shippingAddress ) ;
129
+ }
130
+ } ) )
127
131
. then ( ( ) => this . _onPaymentSelectComplete ( ) )
128
132
. catch ( error => this . _onError ( error ) ) ;
129
133
}
You can’t perform that action at this time.
0 commit comments