Body: <p>I am currently using Paypal checkout through omnipay for payment processing for civievents. I moved the payment processor to appear at the confirm screen rather than the register screen. After doing that, it gives a WordPress critical error whenever I hit register. Looking at the code/logs, it seems like the preapprove array is null/empty. Everything worked fine when the payment processor was on the register screen. Has anyone seen this? I am using the latest civicrm, omnipay, and wordpress. I tried php 8, 8.1, and 7.4.</p>
  <p>Uncaught TypeError: array_merge(): Argument #2 must be of type array, null given in /homepages/----/----/htdocs/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Event/Form/Registration/Confirm.php:548</p>
  <p>Argument #2 is the preapprove array.</p>
  <p>Edit: I did some more messing around with this issue and it seems like registering multiple participants at once also results in this error.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-11-21T11:07:34.257Z
Comments.Text: Can i suggest rewording you question to include more specifics? I suspect people who might be able to help you don't understand it as it stands.
Comments.UserDisplayName: Christian Wach
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-11-22T21:42:50.610Z
Comments.Text: Hey, thanks for the advice. Just changed it
Comments.UserDisplayName: user15536
Tags: <wordpress><paypal><omnipay>
Title: PayPal checkout not working after moving payment to the confirm screen for events
ThreadText: # PayPal checkout not working after moving payment to the confirm screen for events
  
  (Asked by: username_0 on 2023-11-18)
  
  I am currently using Paypal checkout through omnipay for payment processing for civievents. I moved the payment processor to appear at the confirm screen rather than the register screen. After doing that, it gives a WordPress critical error whenever I hit register. Looking at the code/logs, it seems like the preapprove array is null/empty. Everything worked fine when the payment processor was on the register screen. Has anyone seen this? I am using the latest civicrm, omnipay, and wordpress. I tried php 8, 8.1, and 7.4.
  
  Uncaught TypeError: array\_merge(): Argument #2 must be of type array, null given in /homepages/----/----/htdocs/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Event/Form/Registration/Confirm.php:548
  
  Argument #2 is the preapprove array.
  
  Edit: I did some more messing around with this issue and it seems like registering multiple participants at once also results in this error.
  
  **Tags:** wordpress, paypal, omnipay
  
  > **Comments:**
  > **username_1**: Can i suggest rewording you question to include more specifics? I suspect people who might be able to help you don't understand it as it stands.  
  > **username_0**: Hey, thanks for the advice. Just changed it  
  
  ---
  
  ## 0 answers
  
  