How to use webhook-receiver in production?

Hello, @fghaas @foadlind
Can you please help me with the following.

I was trying webhook-receiver plugin. I have tested it in my local (tutor dev). I have tested creating orders by using http://local.overhang.io:8090/webhooks/shopify/order/create url when running in my local. And it was successful. It enrolled the user with the email which was passed in the payload.

Now I am trying it in a test production server. This is the running container.
eb89aad69db7 webhookreceiver:2.3.1 "/bin/sh -c 'gunicor…" 2 hours ago Up 4 minutes 0.0.0.0:8090->8090/tcp, :::8090->8090/tcp tutor_local-webhookreceiver-1

What url can I use to make API call to the webhooks/shopify/order/create. I have tried webhooks.mylmsurl.com but that url is not reachable.

Do you think I might have made some mistake in some configs?

Here is the some of the config value from config.yml

WEBHOOKRECEIVER_HOST: webhooks.mylmsurl.com
WEBHOOKRECEIVER_LMS_ROOT_URL: https://mylmsurl.com

Hello, just checking:

  1. You are using the latest version of the tutor-contrib-webhook-receiver plugin?
  2. Your LMS is indeed accessible at https://mylmsurl.com? (Also, why do you set WEBHOOKRECEIVER_LMS_ROOT_URL? That shouldn’t be necessary.)
  3. You have a DNS record that resolves webhooks.mylmsurl.com to the same IP address as mylmsurl.com?

Hi, @fghaas
Thanks for very prompt response.

I am using palm version of edx-platform. So, I am using tag 2.3.1 of webhook-receiver plugin.

Yes, webhooks.mylmsurl.com DNS record was missing. Which was causing the issue.
Thank you very much for your help.

Hi @fghaas !

When user purchases the course from shopify or woocommerce, they are being enrolled to the course. This much is working fine.

But I want to enroll them in specific course mode. By default the bulk_enroll API enrolls the user in audit mode. And as much as I checked, it is not possible to pass the course mode for the bulk_enroll API. So, is there any work-around or a way to achieve this?
Thanks.

I am not aware of a way to pass a course mode when enrolling learners via the bulk enrollment API, and the API reference documentation appears to confirm that no such option is supported.