Handling the Customer's Return
Handle the customer's return from a 3rd party site
Setting the Return URL
<?php
namespace ScandiTutorials\\MollieScandiConfig\\Setup;
use Magento\\Framework\\App\\Config\\ConfigResource\\ConfigInterface;
use Magento\\Framework\\Setup\\InstallDataInterface;
use Magento\\Framework\\Setup\\ModuleContextInterface;
use Magento\\Framework\\Setup\\ModuleDataSetupInterface;
use Mollie\\Payment\\Config;
class InstallData implements InstallDataInterface
{
/** @var ConfigInterface */
protected $config;
public function __construct(ConfigInterface $config) {
$this->config = $config;
}
public function install(
ModuleDataSetupInterface $setup, ModuleContextInterface $context
) {
$setup->startSetup();
$this->config->saveConfig(Config::GENERAL_USE_CUSTOM_REDIRECT_URL, true);
$this->config->saveConfig(
Config::GENERAL_CUSTOM_REDIRECT_URL,
'{{secure_base_url}}checkout/mollie_result?order_id={{increment_id}}&mollie_payment_token={{payment_token}}&mollie_order_hash={{order_hash}}'
);
$setup->endSetup();
}
}Processing the Order
Displaying the Result
Conclusion
Last updated