• Resolved veltive

    (@veltive)


    I’m unable to finish the setup since I’m trying to activate this plugin in a local / development environment, with docker-compose.

    I keep getting the error: There was a problem connecting this site to WordPress.com: “Your site host “woocommerce.veltive.local” is on a private network. Jetpack can only connect to public sites.”

    I’ve set both WCPAY_DEV_MODE and JETPACK_DEV_DEBUG to true, and WP_ENVIRONMENT_TYPE to development in my wp-config, but this doesn’t help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Rafy a11n

    (@nawaz0705)

    Hi @veltive

    Thank you for reaching out!

    I’m afraid you cannot use WooCommerce Payments and Jetpack on a local site. You would need to use a hosted site.

    So, I would suggest testing these on a live site, as WooCommerce Payments won’t be able to communicate effectively with a locally hosted website.

    I hope this helps!

    No way. You can’t force people to test the most important part of the purchase process (i.e. payment) on a live site. This is just ridiculous, especially having a ton of negative reviews that your plugin have broken many sites.

    You have to make a possibility to test your plugin locally. It is possible with Stripe and other plugins, so you should have this possibility too.

    BTW I have the same problem, staying on an existing solution until you will have a proper testing functionality.

    @publikk I think you can enable a developmental/local mode by adding the following to your wp-config.php

    
    // WooCommerce Payments Dev Mode.
    define( 'WCPAY_DEV_MODE', true );
    

    Documented here

    I’ve tried it, it doesn’t work.

    Hi @publikk!

    If you want to test WooCommerce Payments on your development site, please enable the Dev Mode as explained in the following documentation:

    https://woocommerce.com/document/payments/testing/dev-mode/

    Once you finish, you can start testing payments on your site as illustrated here:

    https://woocommerce.com/document/payments/testing/

    I hope this helps!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to enable payments locally in development environment?’ is closed to new replies.