This repository was archived by the owner on Feb 23, 2024. It is now read-only.
File tree 2 files changed +14
-2
lines changed
providers/cart-checkout/payment-events
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,15 @@ export const usePaymentMethodInterface = (): PaymentMethodInterface => {
91
91
} ) ;
92
92
return store . hasPaymentError ( ) ;
93
93
} ,
94
- isSuccessful : store . isPaymentReady ( ) ,
94
+ get isSuccessful ( ) {
95
+ deprecated ( 'isSuccessful' , {
96
+ since : '9.6.0' ,
97
+ plugin : 'WooCommerce Blocks' ,
98
+ link : 'https://github.com/woocommerce/woocommerce-blocks/pull/8110' ,
99
+ } ) ;
100
+ return store . isPaymentReady ( ) ;
101
+ } ,
102
+ isReady : store . isPaymentReady ( ) ,
95
103
isDoingExpressPayment : store . isExpressPaymentMethodActive ( ) ,
96
104
} ,
97
105
activePaymentMethod : store . getActivePaymentMethod ( ) ,
Original file line number Diff line number Diff line change @@ -65,8 +65,12 @@ export const PaymentEventsProvider = ( {
65
65
const store = select ( PAYMENT_STORE_KEY ) ;
66
66
67
67
return {
68
- isPaymentReady : store . isPaymentReady ( ) ,
68
+ // The PROCESSING status represents befor the checkout runs the observers
69
+ // registered for the payment_setup event.
69
70
isPaymentProcessing : store . isPaymentProcessing ( ) ,
71
+ // the READY status represents when the observers have finished processing and payment data
72
+ // synced with the payment store, ready to be sent to the StoreApi
73
+ isPaymentReady : store . isPaymentReady ( ) ,
70
74
} ;
71
75
} ) ;
72
76
You can’t perform that action at this time.
0 commit comments