function uc_cart_uc_payment_receipt_insert in Ubercart 8.4
Implements hook_uc_payment_receipt_insert().
Ensure the user has an account when payment is made.
File
- uc_cart/
uc_cart.module, line 232 - Handles all things concerning Ubercart's shopping cart.
Code
function uc_cart_uc_payment_receipt_insert(PaymentReceiptInterface $payment) {
\Drupal::service('uc_cart.manager')
->completeSale($payment
->getOrder(), FALSE);
}