If you are using Woocommerce plugin, please refer to this technical documentation: Woocommerce.