protected function preConfigure(Payment $payment)
	{
		if (!$payment->getTarget()) {
			$target = new Target();
			$target->goid = $this->client->getGoId();
			$target->type = TargetType::ACCOUNT;

			$payment->setTarget($target);
		}
	}
protected function preConfigure(Payment $payment)
	{
		if (!$payment->getTarget()) {
			$target = new Target();
			$target->goid = $this->client->getGoId();
			$target->type = TargetType::ACCOUNT;

			$payment->setTarget($target);
		}
	}
protected function preConfigure ( Payment $ payment ) { if ( ! $ payment -> getTarget ( ) ) { $ target = new Target ( ) ; $ target -> goid = $ this -> client -> getGoId ( ) ; $ target -> type = TargetType :: ACCOUNT ; $ payment -> setTarget ( $ target ) ; } }
Add required target field

@param Payment $payment
@return void
Add required target field