I am trying to detect if a user is using an Apple device, this is because I am trying to integrate Apple pay on my software, and I don't want to show android users Apple pay option. They say using USER agent can be used but can also be spoofed, is there a more secure method.
I saw this answer
Detecting iOS / Android Operating system . I dont want just iOS device as iOS doesnt run on Macbook
AND
Detect Apple Device Model . But it is on Objective C
AND
Detect if user is using an iDevice . It did not answer the question.