public function getOutput() { $output = array(); $output["returnUrl"] = $this->returnUrl; $output["cancelUrl"] = $this->cancelUrl; $output["ipnNotificationUrl"] = $this->ipnUrl; $output["memo"] = $this->memo; if (isset($this->localeCode)) { $output["localeCode"] = LocaleCode::ConstantToString($this->localeCode); } if (isset($this->currencyCode)) { $output["currencyCode"] = CurrencyCode::ConstantToString($this->currencyCode); } $this->sender->addSenderToOutput($output); Receiver::addReceiversToOutput($this->receivers, $output); OrderItem::addOrderItemsToOutput($this->orderItems, $output); if (isset($this->fundingConstraints)) { FundingConstraint::addConstraintsToOutput($this->fundingConstraints, $output); if (in_array(FundingConstraint::INVOICE, $this->fundingConstraints) and isset($this->invoiceFee)) { $output["invoiceFee"] = $this->invoiceFee; } } if (isset($this->custom)) { $output["custom"] = $this->custom; } if (isset($this->trackingId)) { $output["trackingId"] = $this->trackingId; } if (isset($this->feesPayer)) { $output["feesPayer"] = FeesPayer::ConstantToString($this->feesPayer); } if (isset($this->guaranteeOffered)) { $output["guaranteeOffered"] = GuaranteeOffered::ConstantToString($this->guaranteeOffered); } return $output; }