• Resolved the_lar

    (@the_lar)


    I have a local development environment on my Mac where I do all my dev work – 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

    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 3 years, 6 months ago by the_lar.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter the_lar

    (@the_lar)

    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

    (@niklasinpsyde)

    Hi @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

    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 3 years, 2 months ago by customfit.
    • This reply was modified 3 years, 2 months ago by customfit.
    • This reply was modified 3 years, 2 months ago by customfit.
    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @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/

    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.