wc-api cannot redirect to payment gateway
-
Hello, I install a plugin to integrate payment gateway to the client’s WooCommerce e-shop but it does not work. After checkout it tried to redirect to gateway, but it give me only 404 error on url https://mysite.sk/wc-api/gpwebpaygpebinder_postredir.
I am in contact with plugin developer and we didn’t find solution for this. He told me, that this is not issue with his plugin, problem is with wc-api. I created local WooCommerce installation with same exact information I used to connect to live payment gateway and it worked in this test operation. Also I instaled all same plugins and theme as I use in live website and it still worked. So I figured that it is not problem with gateway or plugin. Something is blocking wc-api and it didn’t correctly redirect to gateway.
Can you please help me with this? I already lost 2 weeks of my time and it drives me crazy.
Plugins used to integrate payment gateway, which are only available to download in gateway admin not on ww.wp.xz.cn.
WooCommerce GPWebPayGpe: Miroslav Novak http://www.platiti.cz –
Platiti UniAdapter plugin: Miroslav Novak http://www.platiti.cz –Thanks a lot for help.
-
This topic was modified 3 years, 11 months ago by
Branislav Budzák.
The page I need help with: [log in to see the link]
-
This topic was modified 3 years, 11 months ago by
-
Here is Woocommerce Status if it helps:
### WordPress Environment ### WordPress address (URL): https://www.mysite.sk Site address (URL): https://www.mysite.sk WC Version: 6.6.1 REST API Version: ✔ 6.6.1 WC Blocks Version: ✔ 7.6.2 Action Scheduler Version: ✔ 3.4.0 Log Directory Writable: ✔ WP Version: 6.0 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ✔ Language: sk_SK External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.27 PHP Post Max Size: 512 MB PHP Time Limit: 600 PHP Max Input Vars: 1000 cURL Version: 7.47.0 OpenSSL/1.0.2g SUHOSIN Installed: – MySQL Version: 5.5.5-10.3.7-MariaDB-1:10.3.7+maria~xenial-log Max Upload Size: 256 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 6.6.1 WC Database Prefix: qhxwhf_ Celková veľkosť databázy: 45.02MB Veľkosť údajov v databáze: 42.20MB Veľkosť indexu databázy: 2.82MB qhxwhf_woocommerce_sessions: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_woocommerce_api_keys: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB qhxwhf_woocommerce_attribute_taxonomies: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_woocommerce_downloadable_product_permissions: Dáta: 0.02MB + Index: 0.06MB + Engine InnoDB qhxwhf_woocommerce_order_items: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_woocommerce_order_itemmeta: Dáta: 0.06MB + Index: 0.03MB + Engine InnoDB qhxwhf_woocommerce_tax_rates: Dáta: 0.02MB + Index: 0.06MB + Engine InnoDB qhxwhf_woocommerce_tax_rate_locations: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB qhxwhf_woocommerce_shipping_zones: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_woocommerce_shipping_zone_locations: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB qhxwhf_woocommerce_shipping_zone_methods: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_woocommerce_payment_tokens: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_woocommerce_payment_tokenmeta: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB qhxwhf_woocommerce_log: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_actionscheduler_actions: Dáta: 0.06MB + Index: 0.13MB + Engine InnoDB qhxwhf_actionscheduler_claims: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_actionscheduler_groups: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_actionscheduler_logs: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB qhxwhf_commentmeta: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB qhxwhf_comments: Dáta: 0.02MB + Index: 0.09MB + Engine InnoDB qhxwhf_e_events: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_links: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_options: Dáta: 6.48MB + Index: 0.13MB + Engine InnoDB qhxwhf_postmeta: Dáta: 13.52MB + Index: 0.52MB + Engine InnoDB qhxwhf_posts: Dáta: 7.52MB + Index: 0.13MB + Engine InnoDB qhxwhf_revslider_css: Dáta: 0.13MB + Index: 0.02MB + Engine InnoDB qhxwhf_revslider_css_bkp: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_revslider_layer_animations: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_revslider_layer_animations_bkp: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_revslider_navigations: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_revslider_navigations_bkp: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_revslider_sliders: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_revslider_sliders_bkp: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_revslider_slides: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_revslider_slides_bkp: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_revslider_static_slides: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_revslider_static_slides_bkp: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_termmeta: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB qhxwhf_terms: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB qhxwhf_term_relationships: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_term_taxonomy: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB qhxwhf_usermeta: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB qhxwhf_users: Dáta: 0.02MB + Index: 0.05MB + Engine InnoDB qhxwhf_wc_admin_notes: Dáta: 0.06MB + Index: 0.00MB + Engine InnoDB qhxwhf_wc_admin_note_actions: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_wc_category_lookup: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_wc_customer_lookup: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB qhxwhf_wc_download_log: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB qhxwhf_wc_order_coupon_lookup: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB qhxwhf_wc_order_product_lookup: Dáta: 0.02MB + Index: 0.06MB + Engine InnoDB qhxwhf_wc_order_stats: Dáta: 0.02MB + Index: 0.05MB + Engine InnoDB qhxwhf_wc_order_tax_lookup: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB qhxwhf_wc_product_attributes_lookup: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB qhxwhf_wc_product_download_directories: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_wc_product_meta_lookup: Dáta: 0.02MB + Index: 0.09MB + Engine InnoDB qhxwhf_wc_rate_limits: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_wc_reserved_stock: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_wc_sf_log: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_wc_tax_rate_classes: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_wc_webhooks: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_wfblockediplog: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_wfblocks7: Dáta: 0.02MB + Index: 0.05MB + Engine InnoDB qhxwhf_wfconfig: Dáta: 0.47MB + Index: 0.00MB + Engine InnoDB qhxwhf_wfcrawlers: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_wffilechanges: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_wffilemods: Dáta: 6.52MB + Index: 0.00MB + Engine InnoDB qhxwhf_wfhits: Dáta: 0.20MB + Index: 0.05MB + Engine InnoDB qhxwhf_wfhoover: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_wfissues: Dáta: 0.02MB + Index: 0.06MB + Engine InnoDB qhxwhf_wfknownfilelist: Dáta: 5.52MB + Index: 0.00MB + Engine InnoDB qhxwhf_wflivetraffichuman: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_wflocs: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_wflogins: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB qhxwhf_wfls_2fa_secrets: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_wfls_settings: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_wfnotifications: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_wfpendingissues: Dáta: 0.02MB + Index: 0.06MB + Engine InnoDB qhxwhf_wfreversecache: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_wfsnipcache: Dáta: 0.02MB + Index: 0.05MB + Engine InnoDB qhxwhf_wfstatus: Dáta: 0.16MB + Index: 0.13MB + Engine InnoDB qhxwhf_wftrafficrates: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_woodmart_wishlists: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_woodmart_wishlist_products: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB qhxwhf_wpforms_tasks_meta: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_wpmailsmtp_debug_events: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB qhxwhf_wpmailsmtp_tasks_meta: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB unimodul_transactions: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 181 cms_block: 3 elementor_library: 5 mc4wp-form: 1 nav_menu_item: 33 page: 12 portfolio: 9 post: 1 product: 3 product_variation: 18 revision: 374 seedprod: 1 shop_coupon: 1 shop_order: 32 woodmart_sidebar: 1 woodmart_size_guide: 1 wp_global_styles: 1 wpcf7_contact_form: 2 yaymail_template: 11 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (19) ### WooCommerce GPWebPayGpe: Miroslav Novak www.platiti.cz – Platiti UniAdapter plugin: Miroslav Novak www.platiti.cz – Contact Form 7: Takayuki Miyoshi – 5.6 Custom Adobe Fonts (Typekit): Brainstorm Force – 1.0.18 Elementor: Elementor.com – 3.6.6 Site Kit by Google: Google – 1.77.0 Hide Categories Or Products On Shop Page: Kaushik Nakrani – 1.0.3 Jetpack: Automattic – 11.0 Loco Translate: Tim Whitlock – 2.6.2 Slider Revolution: ThemePunch – 6.5.25 Safe SVG: 10up – 2.0.1 UpdraftPlus - Záloha/Obnova: UpdraftPlus.Com DavidAnderson – 1.22.12 User Role Editor: Vladimir Garagulya – 4.62 Checkout Field Editor for WooCommerce: ThemeHigh – 1.6.1 Delivery & Pickup Date Time for WooCommerce: CodeRockz – 1.3.31 WooCommerce: Automattic – 6.6.1 Woodmart Core: – 1.0.34 WP Mail SMTP: WPForms – 3.4.0 YayMail - WooCommerce Email Customizer: YayCommerce – 2.9.3 ### Inactive Plugins (1) ### Coming Soon Page, Maintenance Mode, Landing Pages & WordPress Website Builder by SeedProd: SeedProd – 6.12.2 ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right_space 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: – Enforce Approved Product Download Directories: – ### WC Pages ### Slug pre obchod: #8 - /index.php/obchod/ Košík: #9 - /index.php/kosik/ Pokladňa: #10 - /index.php/kontrola-objednavky/ Môj účet: #11 - /index.php/moj-ucet/ Všeobecné obchodné podmienky: #8569 - /index.php/obchodne-podmienky/ ### Theme ### Name: Woodmart Child Version: 1.0.0 Author URL: http://xtemos.com Child Theme: ✔ Parent Theme Name: Woodmart Parent Theme Version: 6.5.3 Parent Theme Author URL: http://themeforest.net/user/xtemos WooCommerce Support: ✔ ### Templates ### Overrides: woodmart/woocommerce/archive-product.php woodmart/woocommerce/cart/cart-item-data.php woodmart/woocommerce/cart/cart.php woodmart/woocommerce/cart/cross-sells.php woodmart/woocommerce/cart/mini-cart.php woodmart/woocommerce/checkout/form-checkout.php woodmart/woocommerce/checkout/thankyou.php woodmart/woocommerce/content-product-cat.php woodmart/woocommerce/content-product.php woodmart/woocommerce/content-single-product.php woodmart/woocommerce/content-widget-product.php woodmart/woocommerce/global/breadcrumb.php woodmart/woocommerce/global/form-login.php woodmart/woocommerce/global/quantity-input.php woodmart/woocommerce/loop/add-to-cart.php woodmart/woocommerce/loop/loop-end.php woodmart/woocommerce/loop/loop-start.php woodmart/woocommerce/loop/no-products-found.php woodmart/woocommerce/loop/orderby.php woodmart/woocommerce/loop/pagination.php woodmart/woocommerce/loop/sale-flash.php woodmart/woocommerce/myaccount/form-login.php woodmart/woocommerce/product-searchform.php woodmart/woocommerce/single-product/add-to-cart/grouped.php woodmart/woocommerce/single-product/add-to-cart/variable.php woodmart/woocommerce/single-product/meta.php woodmart/woocommerce/single-product/product-attributes.php woodmart/woocommerce/single-product/product-image.php woodmart/woocommerce/single-product/product-thumbnails.php woodmart/woocommerce/single-product/rating.php woodmart/woocommerce/single-product/related.php woodmart/woocommerce/single-product/sale-flash.php woodmart/woocommerce/single-product/tabs/description.php woodmart/woocommerce/single-product/tabs/tabs.php woodmart/woocommerce/single-product/title.php woodmart/woocommerce/single-product/up-sells.php woodmart/woocommerce/single-product.php ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices wc-pay-promotion wc-pay-welcome-page wc-pay-subscriptions-page Disabled Features: minified-js settings Daily Cron: ✔ Next scheduled: 2022-06-23 13:08:45 +02:00 Options: ✔ Notes: 73 Onboarding: completed ### Action Scheduler ### Označiť ako vybavenú: 106 Oldest: 2022-06-21 13:42:41 +0200 Newest: 2022-06-22 15:39:07 +0200 Vybavuje sa: 3 Oldest: 2022-06-22 17:36:33 +0200 Newest: 2022-06-27 16:07:14 +0200 ### Status report information ### Generated at: 2022-06-22 17:36:32 +02:00Hi there,
Thanks for reaching out.
This issue is coming from the WooCommerce GPWebPayGpe extension you are using, which might not be using a correct hook, or something wrong with their code, that it doesn’t redirect on their payment page, after user checkout.
You need to reach out to the plugin support for that, and see if they are able to provide any solution for this.
Best,
@daniyalahmedk As I wrote, I am in contact with GPWebPayGpe extension author and he didn’t figure it out because it works fine in other websites even on my local website I created with all same plugins and themes as I said. I reinstall plugin multiple times and author checked code multiple times but it didn’t find a problem on his side. So it looks like that in my installation it is something blocking wc-api redirect.
Since this is working without issues on your local installation, with the same plugins and theme, it must be either an error on your live installation or some obstruction coming from your server.
I’d recommend first contacting your host to see if there is any type of server-level API blocking.
If that’s not the case, you’ll want to start over with a fresh installation of WordPress, WooCommerce, and theme/plugins.
You could do that initially on a staging site. Many hosts provide staging facilities, so it’s worth checking with them. It’s also possible to do it using the free WP Staging plugin: https://ww.wp.xz.cn/plugins/wp-staging/.
Hope that helps!
We haven’t heard back from you in a while, so I’m marking this thread closed for now – we’ll be here if and/or when you are ready to continue.
The topic ‘wc-api cannot redirect to payment gateway’ is closed to new replies.