Apple Pay button redirect

I'm in the need to know if it's possible to add a different action to an apple pay button instead of performing the checkout. In this case, I need to request for login (redirect) before performing purchases. Is this allowed by Apple?

Apple Pay button redirect
 
 
Q