Title: Testing plugin on localhost &#8211; possible?
Last modified: May 26, 2021

---

# Testing plugin on localhost – possible?

 *  Resolved [the_lar](https://wordpress.org/support/users/the_lar/)
 * (@the_lar)
 * [5 years ago](https://wordpress.org/support/topic/testing-plugin-on-localhost-possible/)
 * I have a local development environment on my Mac where I do all my dev work –
   [https://4x4tyres.localhost](https://4x4tyres.localhost) – should this plugin
   work OK in local dev environments? My issue is that my PayPal button is not displaying
   on the Cart page even though it’s switched on:
 * [⌊Screenshot-2021-05-26-at-12-33-43⌉⌊Screenshot-2021-05-26-at-12-33-43⌉[
 * Button is appearing on the single product and the checkout page though, and I’m
   not seeing any errors in my console on the Cart either.
 * Thanks
    -  This topic was modified 5 years ago by [the_lar](https://wordpress.org/support/users/the_lar/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftesting-plugin-on-localhost-possible%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [the_lar](https://wordpress.org/support/users/the_lar/)
 * (@the_lar)
 * [5 years ago](https://wordpress.org/support/topic/testing-plugin-on-localhost-possible/#post-14485140)
 * Apologies… ignore this question, I’ve found the reason! Some custom checks I 
   put in to detect country and obviouly country isn’t being detected on localhost!
 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [5 years ago](https://wordpress.org/support/topic/testing-plugin-on-localhost-possible/#post-14485391)
 * Hi [@the_lar](https://wordpress.org/support/users/the_lar/).
    No worries, it’s
   still a valid question. The PayPal buttons are only served when certain checks
   were passed by PayPal (such as currency or country code), but in general, it 
   should work fine in a local development environment. Since you found the cause
   of the problem, I will go ahead and mark this as resolved, though. Please let
   us know when any questions remain. Kind regards, Niklas
 *  [customfit](https://wordpress.org/support/users/customfit/)
 * (@customfit)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/testing-plugin-on-localhost-possible/#post-14828661)
 * Hello,
 * I would like to find out if this plugin is really working on localhost.
 * I installed a fresh version of WordPress 5.8 and installed a woocommerce theme.
   
   When I try to set up the payment and choose Paypal, I get this notification:
 * PayPal Checkout is almost ready. To get started, connect your account.
 * When I click on the “connect your account” (your plugin gets activated), the 
   payment page reloads and nothing happens.
    There is no place to add the Paypal
   info, neither Sandbox or the Paypal.
 * Even if I Replace the text starting at s:26:”Pay with your credit card.” and 
   ending at “disable_funding”;a:0:{} with the following:
 * `s:26:"Pay with your credit card.";s:13:"vault_enabled";b:0;s:10:"sandbox_on";
   b:0;s:20:"products_dcc_enabled";N;s:24:"client_secret_production";s:0:"";s:20:"
   client_id_production";s:0:"";s:13:"client_secret";s:0:"";s:9:"client_id";s:0:"";
   s:11:"merchant_id";s:0:"";s:14:"merchant_email";s:0:"";s:22:"merchant_id_production";
   s:0:"";s:25:"merchant_email_production";s:0:"";s:22:"merchant_email_sandbox";
   s:0:"";s:19:"merchant_id_sandbox";s:0:"";s:17:"client_id_sandbox";s:0:"";s:21:"
   client_secret_sandbox";s:0:"";s:6:"intent";s:7:"capture";s:24:"capture_for_virtual_only";
   b:0;s:15:"payee_preferred";b:0;s:12:"landing_page";s:5:"LOGIN";s:15:"disable_funding";
   a:0:{}`
 * to the wp_options > woocommerce-ppcp-settings in the database, after I click 
   to connect, this information disappears from the table and goes back to the original:
 * `a:9:{s:5:"title";s:6:"PayPal";s:11:"description";s:15:"Pay via PayPal.";s:29:"
   button_single_product_enabled";b:1;s:24:"button_mini-cart_enabled";b:1;s:19:"
   button_cart_enabled";b:1;s:10:"brand_name";s:17:"WoodworkingEntity";s:17:"dcc_gateway_title";
   s:12:"Credit Cards";s:23:"dcc_gateway_description";s:26:"Pay with your credit
   card.";s:13:"vault_enabled";b:0;}`
 * There is no place to add the Paypal info, neither Sandbox or the Paypal.
 * Please let me know if I am missing something.
    Thank you!
    -  This reply was modified 4 years, 9 months ago by [customfit](https://wordpress.org/support/users/customfit/).
    -  This reply was modified 4 years, 9 months ago by [customfit](https://wordpress.org/support/users/customfit/).
    -  This reply was modified 4 years, 9 months ago by [customfit](https://wordpress.org/support/users/customfit/).
 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/testing-plugin-on-localhost-possible/#post-14828812)
 * Hi [@customfit](https://wordpress.org/support/users/customfit/),
 * Yes, the plugin does work in local environments.
    Can you please share a copy
   of your system report with the latest plugin version active? As it is not related
   to the issue from this thread, please either create your own thread on the forums
   or alternatively share it privately with us from here: [https://paypal.inpsyde.com/docs/request-support/](https://paypal.inpsyde.com/docs/request-support/)
 * Thanks!
 * Kind regards,
    Niklas

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Testing plugin on localhost – possible?’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-paypal-payments/assets/icon-256x256.png?rev=
   3234615)
 * [WooCommerce PayPal Payments](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-paypal-payments/reviews/)

## Tags

 * [paypal checkout](https://wordpress.org/support/topic-tag/paypal-checkout/)

 * 4 replies
 * 3 participants
 * Last reply from: [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/testing-plugin-on-localhost-possible/#post-14828812)
 * Status: resolved