Edgecase: The course after publishing is not updated with the proper productId. This productId relates the course to the product in our DB which in turn is related to the stripe product.
How the issue was found:

The frontend was sending and id = null to the BE payment/products, meaning the course that the FE received did not have the productId set. This caused the Buy button to throw a 500 error when calling the endpoint.
Frontend flow:
courseStore → paymentStore → onCheckout() → getProductById()



Backend:
apps/course/src/app/courses/service/courses-upsert.service.ts

Trace id:
Please authenticate to join the conversation.
In Review
Bug & Fixes
About 5 hours ago

Carla Onate Gardella
Get notified by email when there are changes.
In Review
Bug & Fixes
About 5 hours ago

Carla Onate Gardella
Get notified by email when there are changes.