public function doExpressCheckout(Invoice $invoice, $token, $payerId) { $this->addPostParameter('METHOD', 'DoExpressCheckoutPayment'); $this->addPostParameter('TOKEN', $token); $this->addPostParameter('PAYERID', $payerId); $this->addPostParameter('PAYMENTREQUEST_0_NOTIFYURL', $this->plugin->getPluginUrl('ipn')); //$this->addPostParameter('PAYMENTACTION', 'Sale'); $this->addPostParameter('PAYMENTREQUEST_0_PAYMENTACTION', 'Sale'); $this->_setExpressAmounts($invoice); }