private function saveInvoiceInstructions($orderNumber, $payment) { /** * SAVE THE INVOICE-INSTRUCTIONS FROM PAYPAL */ /** @var PaymentInstructionProvider $paymentInstructionProvider */ $paymentInstructionProvider = $this->paypalBootstrap->get('payment_instruction_provider'); $paymentInstructionProvider->saveInstructionByOrdernumber($orderNumber, $payment['payment_instruction']); }
/** * save the invoice instructions from paypal * * @param string $orderNumber * @param array $payment */ private function saveInvoiceInstructions($orderNumber, array $payment) { $paymentInstructionProvider = new PaymentInstructionProvider($this->paypalBootstrap->get('db')); $paymentInstructionProvider->saveInstructionByOrderNumber($orderNumber, $payment['payment_instruction']); }