How to detect the payment tool?