update and recalculate cart total with the deduction and display reward points after applying reward points
2
I have customized for applying the reward points from a third party Capillary. I want to update the cart total and display by deducting from the reward points after the response from the curl. I have updated the quote in a controller by the code. protected $cart; protected $cartHelper; protected $_customerSession; protected $_scopeConfig; protected $_objectManager; protected $_checkoutSession; protected $_quoteRepository; protected $_priceCurrency; public $fieldId = ["capillary_enable", "capillary_url", "capillary_user", "capillary_password"]; public function __construct( MagentoFrameworkAppActionContext $context, MagentoCustomerModelSession $customerSession, MagentoCheckoutModelCart $cart, MagentoCheckoutHelperCart $cartHelper, Magento...