• So I need to get running this plugin locally to test validation and those things.

    I am getting this error on VVV Si è verificato un problema durante la connessione a WordPress.com: "Your site host "woocommerce.test" is on a private network. Jetpack can only connect to public sites."
    But I don’t want that a local dev website connect to an external website…

    I added in wp-config.php:

    
    define( 'WCPAY_DEV_MODE', true );
    define( 'JETPACK_DEV_DEBUG', true );
    define( 'WP_ENVIRONMENT_TYPE', 'development' );
    

    But this is not enough to complete the installation and the documentation is not helpful. I am trying patching the plugin but seems that doesn’t care and still try to connect to jetpack and stripe to finish the activation.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support nathvi V. a11n

    (@nathvi)

    Hi @mte90

    Thanks for your message.

    I’m afraid you cannot use WooCommerce Payments and Jetpack on a local site. You would need to use a hosted site. For hosting options, please check our hosting guide here: https://woocommerce.com/hosting-solutions/

    You can still test other things WooCommerce related on a local site: WooCommerce itself, any stand-alone plugin, other payment gateways, etc

    However, Jetpack and WooCommerce Payments, specifically, need to be tested on a hosted site.

    The documentation doesn’t say anything about it https://woocommerce.com/document/payments/testing/dev-mode/

    So for woocommerce a developer should have a website in a server and locally to develop with that? Doesn’t make so much sense as the development happens locally, and I think that they develop locally too (like for automated tests).

    Plugin Support con

    (@conschneider)

    Engineer

    Hi @mte90,

    I am trying patching the plugin but seems that doesn’t care and still try to connect to jetpack and stripe to finish the activation.

    I am afraid that is spot on. You will need to configure your Vagrant to allow JetPack to communicate to external hosts. WooCommerce Payments needs the authorisation procedure to finish it’s setup and to process any transaction.

    Kind regards,

    Also in dev mode locally?
    If I just to want to test the payment system this plugin require external connections?
    This should be documented somewhere…

    Plugin Support con

    (@conschneider)

    Engineer

    Hi Daniele,

    This should be documented somewhere…

    I agree. Let me try and find out what exactly the above constants trigger.

    Kind regards,

    Plugin Support con

    (@conschneider)

    Engineer

    Howdy again,

    If I see this correctly then Jetpack debug mode will make Jetpack work for local development: https://jetpack.com/support/development-mode/

    However WooCommerce Payments does not require JetPack. But what it does require always is to be able to connect to WordPress.com – https://woocommerce.com/document/payments/faq/jetpack/

    You can remove JetPack, but you must allow Vagrant to talk to WordPress.com (which is powered by JetPack) services.

    Kind regards,

    As I said I don’t have jetpack locally but the plugin (I searched in the code) mention that with the error I reported.
    So probably that error mention that requires to connect jetpack server and not the jetpack plugin.

    Plugin Support con

    (@conschneider)

    Engineer

    Hi again,

    As I said I don’t have jetpack locally but the plugin (I searched in the code) mention that with the error I reported.

    Right, my bad.

    So probably that error mention that requires to connect jetpack server and not the jetpack plugin.

    It should. That would less confusing.

    Kind regards,

    Finally, I understand why mine is not working. It is mentioned here: https://woocommerce.com/document/payments/connection/ but not here: https://woocommerce.com/document/payments/testing/dev-mode/
    Please update documentation!

    Thanks

    • This reply was modified 2 years, 7 months ago by capbussat.
    Plugin Support B C. a11n

    (@battouly)

    Hi @capbussat,

    Thanks for sharing the links. We will take a look at it.

    If you have any further questions, please start a new thread.

    Best!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Woocommerce Payments locally doesn’t work’ is closed to new replies.