• Resolved srivat

    (@srivat)


    Hi,

    I’m building a custom payment gateway plugin for WooCommerce as a wordpress plugin. I activated my payment plugin on my local wordpress site and added it as a payment option for WooCommerce. However, during the checkout, my payment option is not seen.

    How do I solve this issue?

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there @srivat,

    Thanks for reaching out.

    I understand you’re having trouble with your plugin not displaying in the checkout option.

    In most cases, in order to have a payment plugin displayed on checkout, the test site should be using a valid SSL certificate, for security reasons.

    Therefore, could you please share more details of your local environment where you are conducting your testing?

    Thread Starter srivat

    (@srivat)

    Thank you for your response!

    Local Environment Details:

    1. Operating System: macOS
    2. Web Server: MAMP (Version 6.9)
    3. PHP Version: PHP 7.4
    4. MySql Version: MySQL 5.7
    5. WordPress Version 5.9
    6. WooCommerce Version 6.3.1
    7. SSL Certificate: Currently, my local environment does not have a valid SSL certificate installed. I’m using the default setup provided by MAMP, which does not include SSL.

    Additional Details:

    1. Plugin Configuration:

    • The payment gateway plugin is activated and configured correctly within WooCommerce settings.

    2. Debugging Efforts:

    • I have enabled debugging in WordPress and checked the wp-content/debug.log file. No significant errors related to the payment gateway are present.

    3. Plugin Code Review:

    • I have reviewed the plugin code to ensure that it adheres to WooCommerce payment gateway standards and have added logging to verify that the plugin is initialized correctly.

    Please let me know if the lack of a valid SSL certificate in my local environment is the primary issue or if there are other aspects I should address to ensure the payment gateway displays correctly during checkout. Any additional guidance or recommendations would be greatly appreciated.

    Thank you!

    Thread Starter srivat

    (@srivat)

    I added SSL certificate to my local environment and yet the payment option is not displayed during the checkout.

    Plugin Support Shameem – a11n

    (@shameemreza)

    Hi @srivat

    Is your plugin compatible with block checkout? If it doesn’t, it won’t appear as an option when you use a checkout block on the checkout page. Instead, you can use the checkout shortcode.

    If you are still having problems, we recommend asking development questions on the #developers channel of the WooCommerce Community Slack. Many of our developers hang out there and will be able to offer insights into your question.

    Thanks!

    Thread Starter srivat

    (@srivat)

    The documentation helped resolve the issue. Thank you!

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

The topic ‘Issue with my custom payment plugin’ is closed to new replies.