Git Product home page Git Product logo

woocommerce-plugin-kpg-2's Introduction

Integrate Khalti in WooCommerce

Contributors: act360 Tags: woocommerce, khalti, payment gateway Requires at least: 5.0 Tested up to: 6.0.1 Stable tag: trunk License: GPLv3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html

Adds Khalti payment gateway option in the WooCommerce plugin.

Description

This plugin adds Khalti payment gateway to WooCommerce.

Please note that WooCommerce must be installed and active.

== Introduction ==

Add Khalti as a payment method in your WooCommerce store.

Khalti is a Nepali Digital Payment Portal developed by Khalti. This means, if your store doesn't accept payment in NPR, you do not need this plugin.

== Installation ==

= Minimum Requirements =

  • WordPress 5.0 or greater.
  • WooCommerce 3.6 or greater.

= Automatic installation =

Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t need to leave your web browser. To do an automatic install of Integrate Khalti in WooCommerce, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.

In the search field type "Integrate Khalti in WooCommerce" and click Search Plugins. Once you’ve found our payment gateway plugin you can view details about it such as the the point release, rating and description. Most importantly of course, you can install it by simply clicking “Install Now”.

= Manual installation =

The manual installation method involves downloading our Integrate Khalti in WooCommerce plugin and uploading it to your webserver via your favourite FTP application. The WordPress codex contains instructions on how to do this here.

= Updating =

Automatic updates should work like a charm; as always though, ensure you backup your site just in case.

== Frequently Asked Questions ==

= What is the plugin license? =

  • This plugin is released under a GPL license.

= What is needed to use this plugin? =

  • PHP 5.6 or later
  • WordPress 5.0 or later.
  • WooCommerce 3.6 or later.
  • Merchant secret from Khalti.

= Which countries does Khalti accepts payment from? =

At the moment the Khalti accepts payments only from Nepal.

Configure the plugin to receive payments only users who select Nepal in payment information during checkout.

= I don't see Khalti payment option during checkout? =

You forgot to select the Nepal during registration at checkout. The Khalti payment option works only with Nepal.

= The request was paid and got the status of "processing" and not as "complete", that is right? =

Yes, this is right and it means that the plugin is working as it should.

Payment gateways in WooCommerce change the order status to "processing" when the payment is confirmed and should never be changed alone to "complete" because the request should go only to the status "completed" after it has been delivered.

For downloadable products, WooCommerce default setting is to allow access only when the request has the status "completed", however in WooCommerce settings tab Products you can enable the option "Grant access to download the product after payment" and thus release download when the order status is as "processing."

= Where can I report bugs or contribute to the project? =

Bugs can be reported either in our support forum or preferably on the WooCommerce Khalti GitHub repository. You can directly reach our developers at [email protected]

= Can I contribute to this plugin? =

Of course! Join in on our GitHub repository

== Credits == ACT360

== Screenshots ==

  1. Settings page.
  2. Checkout page.

== Changelog ==

= 1.0.0 - 04-09-2020 =

  • First release.

woocommerce-plugin-kpg-2's People

Contributors

acpmasquerade avatar chapagainmanoj avatar manibibek avatar sashant-khalti avatar sthasashant avatar techies23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

woocommerce-plugin-kpg-2's Issues

Payment stays on confirmed state when paid using Mobile banking, Connect IPS, SCT card

When customers pay using Connect IPS, Mobile banking, Ebanking, and SCT card option from Khalti, the payment is deducted from the customer end but the payment stays on confirmed state on merchant end resulting in the order on the woo-commerce to stay on pending payment state. Please resolve this issue as soon as possible. Also please make sure to update the plugin version when the features are being added. Also, upload to WordPress official plugin section for auto-update of the plugin so that we do not have to download from GitHub every time.

Notice: payment_method was called incorrectly. Order properties should not be accessed directly.

Hi I am getting this on Order confirmation email to users.
Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/storefront/page.php'), get_template_part, locate_template, load_template, require('/themes/storefront/content-page.php'), do_action('storefront_page'), WP_Hook->do_action, WP_Hook->apply_filters, storefront_page_content, the_content, apply_filters('the_content'), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, WC_Shortcodes::checkout, WC_Shortcodes::shortcode_wrapper, WC_Shortcode_Checkout::output, WC_Shortcode_Checkout::checkout, wc_get_template, include('/plugins/woocommerce/templates/checkout/form-checkout.php'), do_action('woocommerce_checkout_order_review'), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_checkout_payment, wc_get_template, include('/plugins/woocommerce/templates/checkout/payment.php'), wc_get_template, include('/plugins/woocommerce/templat in /home/trendyst/public_html/wp-includes/functions.php on line 4773

Product URL is not passed !!

<script> jQuery(document).ready(function ($) { jQuery('#payment_method_khalti').on('click', function () { //jQuery('#place_order').hide(); }); if (!document.getElementById('payment_method_khalti').checked) { jQuery('#place_order').show(); alert('show'); } }) </script> <script src="https://khalti.com/static/khalti-checkout.js"></script>

Pay with Khalti

<script> var config = { // replace the publicKey with yours "publicKey": "public_key;?>", "productIdentity": "", "productName": "product", "productUrl": "", "eventHandler": { onSuccess(payload) { // hit merchant api for initiating verfication //console.log(payload); var token = payload.token; var amount = payload.amount; window.location.href = '?token=' + token + '&amount=' + amount + '&order_id=' +; }, onError(error) { console.log(error); }, onClose() { console.log('widget is closing'); } } }; var checkout = new KhaltiCheckout(config); var btn = document.getElementById("payment-button"); //btn.onclick = function () { checkout.show({amount: }); //} </script>

Force SSL error warning after activation

When the site is already running over SSL, wocommerce does not provide force ssl at checkout option (because entire site is already over SSL). Khalti plugin does not check that and keeps on showing following message:

Khalti is enabled, but the Force SSL option is disabled; your checkout may not be secure! Please enable SSL and ensure your server has a valid SSL certificate - Gateway Name will only work in sandbox mode.

Pay with Khalti not appearing in checkout options

Summary

Pay with Khalti option is not seen during the checkout even though the test keys and secret keys are added

Expected Behavior

Payment option should be available during checkout

Current Behavior

Payment option is not showing up

Steps to Reproduce

  • Install the plguin and activate it
  • Activate Khalti option in woocommerce payment settings
  • Check enable khalti checkbox and sandbox checkbox
  • Add test secret and public keys
  • Save the changes and checkout an item

System Status

system_status.txt

Could not complete transaction.

This message appears after a user enters info in khalti widget
image
The transaction remains in the Confirmed state and could proceed to verify the method.
And admin is notified
image

Remove use of NPR currency and its symbol

I have found this line of code to add a woocommerce currency symbol and since the core already does have NPR as Nepalese Rupee (Rs) currency with symbol. Thus deprecation of this two filter used in this line is requested: https://github.com/khalti/khalti-woocommerce/blob/a56af0b23800a222fa154ccc511589f979076b60/khalti.php#L159-L160

This is because, some users want to integrate both eSewa and Khalti but because of this addition to the currency symbol, there is some kind of confusion. Here is the issue link in WooCommerce eSewa

Thanks,
Shiva Poudel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.