EMV kernel for smartcard payments