Okay
  Public Ticket #2660238
Error Woocomerce Payments
Closed

Comments

  • Admin Democratest started the conversation

    We are having error 500 in this call 

    /wp-admin/admin-ajax.php?action=wpamelia_api&call=/payment/wc

    In debug log

    PHP Notice:  Undefined index: serviceName in /public_html/wp-content/plugins/ameliabooking/src/Infrastructure/WP/Integrations/WooCommerce/WooCommerceService.php on line 214

    Payments are registered, order created and also the  appointment but we have found that many orders created in woocomerce by Amelia are asigned as guest when we have activated creation of WP User (and the user exists)

    Best Regards

  • [deleted] replied

    Hello Admin Democratest,

    Apologies for replying a bit later, we don't work on weekends.

    Could you please tell me does WooCommerce work at all on the website? When do you have the 500 error?

    A WP user can be created automatically from Amelia when someone books an appointment only in case there is no such user in WP - if there is already a WP user with that email there isn't a possibility of creating another user in WP, or connecting this Amelia customer to that already existing WP user only via their email address, unfortunately. This is possible to happen only if these WP users are logged in and book an appointment in Amelia while logged in (and the option to automatically create a WP user in Amelia Roles settings is enabled), so the WP user is connected to the customer in Amelia created at that moment and get the Amelia Customer user role as well.