Strapi V4 create custom controller using stripe, having problem to safe in db using service.create

Hi, I finally resolved by myself , I forgot to put the params inside the data object

const entity = await strapi.service('api::order.order').create({
      data: {
      publishedAt: new Date(),
      user: ctx.state.user.id,
      charge_id: charge.id,
      amount: stripeAmount,
      address,
      dishes,
      city,
      state,
    }});
3 Likes