Integrated MangoPay SDK seems outdated (Mandates)
-
Hello,
I’m using, along with your plugin features, the included MangoPay PHP SDK (\plugins\mangopay-woocommerce\sdk\MangoPay) to make custom actions with the MangoPay API.
I now want to create mandates, but the plugin integrated SDK does not have the ApiMandates.php file.
Furthermore, the included SDK also use the \MangoPay\XX namespace: when including the latest (GitHub) version of the SDK (autoloader.php) it conflicts with the plugin SDK.
Is so get the error “No HTTP resource was found that matches the request URI” as the mandates (\MangoPay\ApiMandates::Create()) and related configuration is not available in the plugin included SDK.Strangely, it seems the ApiMandates.php file has been added a long time ago.
Is there any way to correctly update/override the SDK?
– should I override the entire new SDK namespaces to be able to import it and use it along with the one of the plugin (would be a bad solution still..).
– should I use composer to update the sdk version in the plugin, and prevent future plugin update to prevent bugs? (It would change files in the plugin folder)Thanks
- The topic ‘Integrated MangoPay SDK seems outdated (Mandates)’ is closed to new replies.