http call error “404 Not Found” when trying use plugin
-
Hello,
I’m getting this error when trying to setup plugin/paypal connection
https://api.woocommerce.com/integrations/ppc/v1/billing-agreements/agreement-tokens
404 Not FoundThis http endpoint is not working even when I try with POSTMAN.
-
Hello @sectorx
Thanks for reaching out.
I believe you are referring to the PayPal dashboard and not the plugin logs specifically. The API call you’re seeing (
/agreement-tokens) is used to verify whether the Reference Transactions feature is enabled for your PayPal merchant account. The call itself is part of the routine configuration process, and it’s expected to run in the background during setup, usually it looks like that: https://drive.google.com/uc?id=11DYmrkcVwVnvlunxMdscpnWSiP4qdghQAlso, you can safely ignore that API call from within the PayPal dashboard.
If you’re unable to complete the PayPal onboarding using the plugin wizard, could you provide a bit more context on what exactly happens? For example, does the screen get stuck while loading, or are you redirected somewhere?
Let me know more details and I’ll be happy to guide you further.
Kind Regards,
KrystianHello,
thanks for quick reply.
When I try to connect paypal account, I press “Connect to Paypal” button, successfully login to paypal account, I get “You’re all set!” screen. But then when I return to woocommerce setup is not finished and I get again “Complete Your Payment Setup” screen.
I notice http api call errors in PLUGIN, not in paypal dashboard. Detail below. I suspect this is causing setup not to finish properly
Plugin: woocommerce-paypal-payments
POST
https://api.woocommerce.com/integrations/ppc/v1/billing-agreements/agreement-tokens
404 Not FoundDNS Resolution Time: 0.0011 Connection Time: 0.1159 Transfer Start Time (TTFB): 0.4236 Response Content Type: application/json; charset=utf-8 IP Address: 192.0.96.246 WooCommerce\P\A\E\BillingAgreementsEndpoint->request() wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/RequestTrait.php:40 WooCommerce\P\A\E\BillingAgreementsEndpoint->create_token() wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/BillingAgreementsEndpoint.php:70 WooCommerce\P\A\E\BillingAgreementsEndpoint->reference_transaction_enabled() wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/BillingAgreementsEndpoint.php:94 WooCommerce\P\W\WCGatewayModule::WooCommerce\P\W\{closure}() wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/services.php:319 WooCommerce\P\V\I\M\C\ReadOnlyContainer->get() wp-content/plugins/woocommerce-paypal-payments/lib/packages/Inpsyde/Modularity/Container/ReadOnlyContainer.php:58 WooCommerce\P\W\WCGatewayModule::WooCommerce\P\W\{closure}() wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/services.php:394 WooCommerce\P\V\I\M\C\ReadOnlyContainer->get() wp-content/plugins/woocommerce-paypal-payments/lib/packages/Inpsyde/Modularity/Container/ReadOnlyContainer.php:58 WooCommerce\P\W\WCGatewayModule::WooCommerce\P\W\{closure}() wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/services.php:232 WooCommerce\P\V\I\M\C\ReadOnlyContainer->get() wp-content/plugins/woocommerce-paypal-payments/lib/packages/Inpsyde/Modularity/Container/ReadOnlyContainer.php:58 WooCommerce\P\W\WCGatewayModule::WooCommerce\P\W\{closure}() wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/services.php:88 WooCommerce\P\V\I\M\C\ReadOnlyContainer->get() wp-content/plugins/woocommerce-paypal-payments/lib/packages/Inpsyde/Modularity/Container/ReadOnlyContainer.php:58 WooCommerce\P\B\BlocksModule::WooCommerce\P\B\{closure}() wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-blocks/services.php:26 WooCommerce\P\V\I\M\C\ReadOnlyContainer->get() wp-content/plugins/woocommerce-paypal-payments/lib/packages/Inpsyde/Modularity/Container/ReadOnlyContainer.php:58 WooCommerce\P\B\BlocksModule->WooCommerce\P\B\{closure}() wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-blocks/src/BlocksModule.php:53 do_action('woocommerce_blocks_payment_method_type_registration') wp-includes/plugin.php:517 Automattic\W\B\I\IntegrationRegistry->initialize() wp-content/plugins/woocommerce/src/Blocks/Integrations/IntegrationRegistry.php:50 do_action('init') wp-includes/plugin.php:517Hello @sectorx
To work around this, please give the following steps a try:
- Download and install the updated plugin package from this link: Download link You can install it just like any regular plugin via your WordPress dashboard. This version includes fixes for issues seen with the newer onboarding interface.
- If the issue persists after installing the above, please try installing and activating this helper plugin instead: Helper plugin link This will switch the plugin back to using the older onboarding flow, which tends to work more reliably in situations like yours.
After doing that, you should be able to complete the PayPal account connection without running into the incomplete setup loop.
Let me know if you still face any issues or if you’d like me to assist further.
Kind Regards,
KrystianHello,
thank you very much for help. I tried plugin version you posted but it did not help.
I was however tried to solve it this way: I reverted back to original plugin and went through connect wizard. After it ended again in “Complete Your Payment Setup” screen I configured API credentials manually. This way I was able to get it working.
Have a nice day and thanks again for quick responses.
Hello @sectorx
Thanks a lot for the update and for sharing your solution.
Yes, manually onboarding with the API credentials is the third fallback option if the onboarding wizard doesn’t complete properly — great that you found it and got things working on your side.
Glad to hear it’s resolved. Let us know if you need anything else going forward.
Kind Regards,
Krystian
The topic ‘http call error “404 Not Found” when trying use plugin’ is closed to new replies.