Although the other answer explains that this proposed attack is not possible, I wanted to touch on how the same-origin policy (SOP) actually prevents this.
As said in Port Swigger’s explanation of SOP
An origin consists of a URI scheme, domain and port number.
SOP prevents scripts running on one origin (https://attacker.com) from accessing or modifying JS properties on a different origin (https://paypal.com).
Which prevents your proposed attack.
Even though the iframe can display PayPal’s website, JS code on the attacker’s site can’t trigger actions like clicking buttons inside the PayPal iframe, thanks to SOP.
Event.isTrusted
). There are also some operations which browsers only permit immediately following a click from a human (i.e., not based on a click event initiated from JavaScript).