• Resolved imanabuhaydari

    (@imanabuhaydari)


    I get this error after clicking on :
    https://prnt.sc/1x29vuh

    Fatal error: Uncaught TypeError: WooCommerce\PayPalCommerce\ApiClient\Authentication\PayPalBearer::request_response_string(): Argument #3 ($response) must be of type array, WP_Error given, called in C:\xampp8\htdocs\three\jupiterx\wp-content\plugins\woocommerce-paypal-payments\modules\ppcp-api-client\src\Endpoint\class-requesttrait.php on line 40

    I installed the PayPal Extention on my local host site, and add all valid credentials, but after saving I get this issue.

    Is it possible to enale paypal extention on my localhost?

    ### WordPress Environment ###
    
    WordPress address (URL): http://127.0.0.1/three/jupiterx
    Site address (URL): http://127.0.0.1/three/jupiterx
    WC Version: 5.8.0
    REST API Version: ✔ 5.8.0
    WC Blocks Version: ✔ 5.9.1
    Action Scheduler Version: ✔ 3.3.0
    WC Admin Version: ✔ 2.7.2
    Log Directory Writable: ✔
    WP Version: 5.8.1
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: ✔
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/8.0.8
    PHP Version: 8.0.8
    PHP Post Max Size: 40 MB
    PHP Time Limit: 0
    PHP Max Input Vars: 1000
    cURL Version: 7.76.1
    OpenSSL/1.1.1k
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.4.20-MariaDB
    Max Upload Size: 40 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ❌ Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ❌ wp_remote_post() failed. Contact your hosting provider. 403
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 5.8.0
    WC Database Prefix: wp_
    Total Database Size: 10.65MB
    Database Data Size: 7.81MB
    Database Index Size: 2.84MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.22MB + Index: 0.25MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 0.13MB + Index: 0.17MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
    wp_bwf_contact: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_bwf_contact_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_bwf_funnelmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_bwf_funnels: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_bwf_optin_entries: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_bwf_wc_customers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_cartflows_visits: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_cartflows_visits_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB
    wp_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wp_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_jet_post_types: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_jet_smart_filters_indexer: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_jet_taxonomies: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 4.03MB + Index: 0.08MB + Engine InnoDB
    wp_postmeta: Data: 1.52MB + Index: 0.25MB + Engine InnoDB
    wp_posts: Data: 0.42MB + Index: 0.06MB + Engine InnoDB
    wp_sellkit_applied_discount: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_sellkit_contact_segmentation: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_sellkit_filters_indexer: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.08MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfacp_stats: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfco_report_views: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfob_stats: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfocu_event: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfocu_event_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfocu_session: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 1
    custom_css: 1
    elementor_library: 14
    jet-engine: 1
    jet-popup: 1
    jet-smart-filters: 4
    jet-woo-builder: 1
    nav_menu_item: 5
    page: 11
    post: 2
    product: 21
    revision: 30
    sellkit_step: 11
    sellkit-alert: 1
    sellkit-coupons: 1
    sellkit-discount: 2
    sellkit-funnels: 2
    shop_coupon: 1
    shop_order: 32
    
    ### Security ###
    
    Secure connection (HTTPS): ❌
    					Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ❌Error messages should not be shown to visitors.
    
    ### Active Plugins (16) ###
    
    Advanced Custom Fields: by Delicious Brains – 5.9.9
    Customizer Export/Import: by The Beaver Builder Team – 0.9.2
    Elementor Pro: by Elementor.com – 3.4.0
    Elementor: by Elementor.com – 3.4.3
    JetBlog For Elementor: by Crocoblock – 2.2.14
    JetElements For Elementor: by Crocoblock – 2.5.9
    JetEngine: by Crocoblock – 2.9.0
    JetPopup: by Crocoblock – 1.5.5
    JetSmartFilters: by Crocoblock – 2.3.2
    JetTabs For Elementor: by Crocoblock – 2.1.13
    JetTricks: by Crocoblock – 1.3.8
    JetWooBuilder For Elementor: by Crocoblock – 1.10.2
    Jupiter X Core: by Artbees – 1.23.0
    Sellkit: by Artbees – 1.0.0
    WooCommerce PayPal Payments: by WooCommerce – 1.6.1
    WooCommerce: by Automattic – 5.8.0
    
    ### Inactive Plugins (14) ###
    
    Akismet Anti-Spam: by Automattic – 4.1.9
    CartFlows: by CartFlows Inc – 1.7.0
    CartFlows Pro: by CartFlows Inc – 1.7.1
    Creative Mail by Constant Contact: by Constant Contact – 1.3.9
    Facebook for WooCommerce: by Facebook – 2.5.0
    FakerPress: by Gustavo Bordoni – 0.5.1
    Google Ads & Marketing by Kliken: by Kliken – 1.0.7
    Hello Dolly: by Matt Mullenweg – 1.7.2
    Mailchimp for WooCommerce: by Mailchimp – 2.5.1
    Raven: by Artbees – 1.11.0
    Transients Manager: by Pippin Williamson – 1.8.1
    WooFunnels Funnel Builder: by BuildWooFunnels – 1.5.1
    WooFunnels Funnel Builder Pro: by BuildWooFunnels – 1.6.0
    YITH Booking Groups: by YITH – 1.0.0
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #6 - /shop/
    Cart: #7 - /cart/
    Checkout: #8 - /checkout/
    My account: #9 - /my-account/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: JupiterX
    Version: 1.26.0
    Author URL: https://artbees.net/
    Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: jupiterx/lib/templates/woocommerce/cart\cart.php
    jupiterx/lib/templates/woocommerce/checkout\thankyou.php
    jupiterx/lib/templates/woocommerce/content-product.php
    jupiterx/lib/templates/woocommerce/loop\rating.php
    jupiterx/lib/templates/woocommerce/order\order-details-item.php
    jupiterx/lib/templates/woocommerce/single-product\add-to-cart\grouped.php
    jupiterx/lib/templates/woocommerce/single-product\add-to-cart\simple.php
    jupiterx/lib/templates/woocommerce/single-product\add-to-cart\variable.php
    jupiterx/lib/templates/woocommerce/single-product\add-to-cart\variation-add-to-cart-button.php
    jupiterx/lib/templates/woocommerce/single-product\meta.php
    
    ### WooCommerce PayPal Payments ###
    
    Onboarded: No
    Shop country code: US
    PayPal card processing available in country: Yes
    Pay Later messaging available in country: Yes
    Vault enabled: No
    
    ### Action Scheduler ###
    
    Complete: 411
    Oldest: 2021-09-23 11:38:47 +0330
    Newest: 2021-10-24 09:43:30 +0330
    
    ### Status report information ###
    
    Generated at: 2021-10-24 09:44:26 +03:30

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @imanabuhaydari,

    Your local environment needs a valid URL, for example localhost.local. Otherwise, there might be a problem establishing the connection to PayPal.
    Currently, when the connection to PayPal can’t be established, then certain errors like the one you posted can be the result.
    https://github.com/woocommerce/woocommerce-paypal-payments/issues/347
    We are working to improve the general behavior around this, but PayPal usually requires your site to have a valid domain.
    Please let us know how it works out with a local domain. Thanks!

    Kind regards,
    Niklas

    Thread Starter imanabuhaydari

    (@imanabuhaydari)

    Hi @niklasinpsyde

    My PayPal gateway is working perfectly with Paypal standard plugin, So I expect that it also works with this plugin.

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    This issue was resolved in version 1.6.2.
    But a valid TLD and SSL connection are still required by PayPal for the REST API, even for local environments.
    The PayPal Standard integration works fundamentally different, so it cannot be compared to the new integration.

    Kind regards,
    Niklas

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘An issue after clicking on paypal settings’ is closed to new replies.