  }

  return config;
}

/**
 *  Our own session creation to keep track of how the session is doing.
 *  In here we add the Hook that will inform us from Stripe when session is completed.
 * @param course: We want the courseId (which is the product) and the user to be added to the data
 */
export async function createPurchaseSessionData(course: IRequestInfo) {
  const purchaseSession = await db.collection(FirebaseCollectionType.PurchaseSession).doc();
