/** * Checkout with Braintree PayPal from Shopping Cart. * * @return void */ public function run() { $this->checkoutCart->open(); $this->checkoutCart->getTotalsBlock()->waitForShippingPriceBlock(); $this->checkoutCart->getTotalsBlock()->waitForUpdatedTotals(); $currentWindow = $this->checkoutCart->getCartBlock()->braintreePaypalCheckout(); $this->checkoutCart->getBraintreePaypalBlock()->process($currentWindow); }
/** * Checkout with Braintree PayPal from Shopping Cart. * * @return void */ public function run() { $this->checkoutCart->open(); $this->checkoutCart->getCartBlock()->braintreePaypalCheckout(); $this->checkoutCart->getBraintreePaypalBlock()->process(); }