mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
🔥 Remove unused file
This commit is contained in:
parent
243630ea5d
commit
e2cb454556
1 changed files with 0 additions and 27 deletions
|
@ -1,27 +0,0 @@
|
||||||
import { useEffect } from '@wordpress/element';
|
|
||||||
|
|
||||||
const usePaymentSetup = ( onPaymentSetup, emitResponse, card ) => {
|
|
||||||
useEffect( () => {
|
|
||||||
const unsubscribe = onPaymentSetup( async () => {
|
|
||||||
return {
|
|
||||||
type: emitResponse.responseTypes.SUCCESS,
|
|
||||||
meta: {
|
|
||||||
paymentMethodData: {
|
|
||||||
axo_nonce: card?.id,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
} );
|
|
||||||
|
|
||||||
return () => {
|
|
||||||
unsubscribe();
|
|
||||||
};
|
|
||||||
}, [
|
|
||||||
emitResponse.responseTypes.ERROR,
|
|
||||||
emitResponse.responseTypes.SUCCESS,
|
|
||||||
onPaymentSetup,
|
|
||||||
card,
|
|
||||||
] );
|
|
||||||
};
|
|
||||||
|
|
||||||
export default usePaymentSetup;
|
|
Loading…
Add table
Add a link
Reference in a new issue