/** * Pay Pal checkout from product page. * * @return void */ public function run() { $this->browser->open($_ENV['app_frontend_url'] . $this->products[0]->getUrlKey() . '.html'); $this->catalogProductView->getPaypalViewBlock()->paypalCheckout($this->products[0]); }