Skip to content

Commit

Permalink
pkp/pkp-lib#10327 Do not assume user session when fulfilling payment
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Aug 23, 2024
1 parent ac6c6e3 commit a615ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/payment/ojs/OJSPaymentManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public function fulfillQueuedPayment($request, $queuedPayment, $payMethodPluginN
}
}
$completedPaymentDao = DAORegistry::getDAO('OJSCompletedPaymentDAO'); /** @var OJSCompletedPaymentDAO $completedPaymentDao */
$completedPayment = $this->createCompletedPayment($queuedPayment, $payMethodPluginName, $request->getUser()->getId());
$completedPayment = $this->createCompletedPayment($queuedPayment, $payMethodPluginName, $queuedPayment->getUserId());
$completedPaymentDao->insertObject($completedPayment);

$queuedPaymentDao = DAORegistry::getDAO('QueuedPaymentDAO'); /** @var QueuedPaymentDAO $queuedPaymentDao */
Expand Down

0 comments on commit a615ba7

Please sign in to comment.