Closed remcotolsma closed 9 months ago
This has to do with the fact that you can switch integrations within a configuration in the WordPress admin dashboard. In that case, the changed integration has not yet been saved within the configuration, but we do want to request the gateway from the chosen integration.
https://github.com/pronamic/wp-pay-core/blob/68e947335aaf02544109862c4f3c685bfa8df9a9/src/Plugin.php#L795-L828
https://github.com/pronamic/wp-pay-core/blob/68e947335aaf02544109862c4f3c685bfa8df9a9/src/Gateways/GatewaysDataStoreCPT.php#L43-L85