How do I send Order Confirmation Email after successfull Payment in Magento 2.3.0

I am struggling with this from past 3 weeks and tried almost all of the solutions suggested but nothing works for me. I want to send an Order Confirmation email after successful payment (Payment Gateway Paystack). Even I have tried this https://meetanshi.com/blog/send-magento-2-order-confirmation-email-after-payment-success/ but the mails stop working for an order previously emails were sent with…

Magento2: How to pass data from model file to knockout.js?

I want to pass the data from model file to knockout.js in Magento2. My Code: Model file: <?php namespace Amy\MyPackage\Model\Total\Quote; /** * Class Custom * @package Mageplaza\HelloWorld\Model\Total\Quote */ class Package extends \Magento\Quote\Model\Quote\Address\Total\AbstractTotal { /** * @var \Magento\Framework\Pricing\PriceCurrencyInterface */ protected $_priceCurrency; /** * Custom constructor. * @param \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency */ public function __construct( \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency ){…

How do I configure a Kernel test?

Currently I am able to run the Unit test from the below command C:\Acquia_dev_desktop\LocalInstance\drupal_new_lab\vendor\bin>phpunit -c ../../core/phpunit.xml.dist ../../modules/custom/lse_demo/tests/src/Unit PHPUnit 6.5.0 by Sebastian Bergmann and contributors. …… 6 / 6 (100%) Time: 10.62 seconds, Memory: 6.00MB OK (6 tests, 12 assertions) But When I tried to do the same with Kernel test I get below error C:\Acquia_dev_desktop\LocalInstance\drupal_new_lab\vendor\bin>phpunit…