🔥 Remove unused file

This commit is contained in:
Philipp Stracker 2024-09-16 15:47:10 +02:00
parent 243630ea5d
commit e2cb454556
No known key found for this signature in database

View file

@ -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;