Coder Social home page Coder Social logo

omise-woocommerce's Introduction

Opn Payments

Opn Payments is a payment service provider operating in Thailand, Japan, and Singapore. Opn Payments provides a set of APIs that help merchants of any size accept payments online.

Omise WooCommerce is our official plugin providing support for processing payments on WooCommerce through Opn Payments.

Security Warning

Please do NOT use Omise WooCommerce plugin versions less than 4.8, as they are outdated and have security vulnerabilities.

Usage

See our official docs for details on installation and configuration.

Contributing

Thanks for your interest in contributing to Omise WooCommerce. Pull requests, issues, and bugfixes are welcome!

omise-woocommerce's People

Contributors

aashishgurung avatar ajzkk avatar asukaomise avatar danfowler avatar dependabot[bot] avatar fhanomise avatar fred avatar guzzilar avatar hpariwat avatar jacstn avatar jura-omise avatar jutinapas avatar kan98 avatar mayukojpn avatar mayurkathale avatar muthuswamyopn avatar new4762 avatar nimid avatar nimitomise avatar nlogx avatar som-m avatar thammada avatar tommy-omise avatar tookaa2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

omise-woocommerce's Issues

Add filter hooks for charge.description and charge.metadata

There should be a way to modify/extend charge.description and charge.metadata when creating a charge.
I suggest adding a filter hook such that developers can modify the those properties programmatically. Admin UI for those fields can be created based on these filters.

Pending Payment vs On Hold Order Status

Currently by default Omise sets new orders to the on-hold status. This was set in (#142)
However, the on-hold status will reduce the stock of the product indefinitely until the order gets manually cancelled.

WooCommerce has a setting called "Hold stock (minutes)" with the description:
Hold stock (for unpaid orders) for x minutes. When this limit is reached, the pending order will be cancelled. Leave blank to disable.

However this setting will only affect orders that are pending payment rather on hold. There may be some business use cases where the business may want the orders to be set to pending rather than on-hold. For example, customers whom have not paid within 10 mins have abandoned their order and the business wants the orders to be auto cancelled.

I would suggest that a setting be introduced to give businesses the flexibility to choose whichever order status they would prefer.

credit card type validator?

How to enable credit card type validator?
when we input the visa number it's diaplay visa icon on the textbox

are there anycode?
Thanks

Change position of Omise Payment Settings in WooCommerce My Account

I am testing your Omise WooCommerce plugin integration and I have a suggestion for future plugin updates:

Currently, the "Omise Settings" (see: https://drive.google.com/file/d/1Wa23br92YHElS4TVRPD5VpH7KV3yT573/view?usp=sharing ) are showing in the main WooCommerce "My Account" page (Dashboard).

However, I believe the correct place to embed these settings would be under "Payment methods" like Stripe is doing.

Or, at least, It would be nice to have a separate end-point and/or a shortcode, so that this portion can be embedded wherever needed with a page-builder.

I look forward to hearing from your opinion on this.

Best regards,

cant delete credit card

Hi I cant seem to find a way to delete a credit card once it has been 'saved' by the plugin. Can someone please help.

It seems we've been unable to process your payment properly:

hello

we are now in test payment mode with our woocommerce setup but getting the following message after submitting a test card payment

"It seems we've been unable to process your payment properly:"

Wordpress: 5.2.2
WooCommerce: 3.8.0
Omise: 3.9

we use a test card Credit Card. 4242424242424242

Identify card type from card number

I am trying to identify card number to display the credit card processing company icon on the side of the field. So far I can identify the card number now but I can't display the icon on the side. It only returns the company name which does not work. Can you help me out?

Added into templates/payment/form-creditcard.php

<script type="text/javascript">

  function GetCardType(number)
  {
      // visa
      var re = new RegExp("^4");
      if (number.match(re) != null)
          return "Visa";

      // Mastercard 
      // Updated for Mastercard 2017 BINs expansion
       if (/^(5[1-5][0-9]{14}|2(22[1-9][0-9]{12}|2[3-9][0-9]{13}|[3-6][0-9]{14}|7[0-1][0-9]{13}|720[0-9]{12}))$/.test(number)) 
          return "Mastercard";

      // AMEX
      re = new RegExp("^3[47]");
      if (number.match(re) != null)
          return "AMEX";

      // Discover
      re = new RegExp("^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)");
      if (number.match(re) != null)
          return "Discover";

      // Diners
      re = new RegExp("^36");
      if (number.match(re) != null)
          return "Diners";

      // Diners - Carte Blanche
      re = new RegExp("^30[0-5]");
      if (number.match(re) != null)
          return "Diners - Carte Blanche";

      // JCB
      re = new RegExp("^35(2[89]|[3-8][0-9])");
      if (number.match(re) != null)
          return "JCB";

      // Visa Electron
      re = new RegExp("^(4026|417500|4508|4844|491(3|7))");
      if (number.match(re) != null)
          return "Visa Electron";

      return "";
  }

  document.getElementById('omise_card_number').oninput = function() {
    this.value = GetCardType(this.value)
  }
</script>

Authentication failed

We have already have live dashboard and set public key and secret key. However, the payment process is not processed, it shows authentication failed after customer confirm their payment.

Double event notification on payment (resulting in double emails)

We are forced to use Omise 3D Secure with our shop. Often times when people pay we and them receive two notifications about this, resulting in confusion about the amount of orders. People think they ordered and paid twice. The logs show that the payment event is thrown/logged twice:

Selection_058

The dashboard in Omise shows only one single charge.

These things happen quite often and always payment via 3D secure fail first, then they work and result in notifications twice.

Let me know if you need charge IDs to find out specific info.

Refactor

  1. Refactor error messages and functions. Make functions smaller and simpler to debug.
  2. Add auto-capture settings, and button to call the charge with capture.
  3. Implement full and partial refunds, a button on the order item.
  4. Implement account balance, some sort of Omise Dashboard page with Total and Available balance.

Error on every payment

Error Details

An error of type E_ERROR was caused in line 30 of the file /var/www/html/wp-content/plugins/omise/includes/libraries/omise-php/lib/omise/exception/OmiseExceptions.php. Error message: Uncaught OmiseNotFoundException: schedule schd_test_5njcfi9aozkzkf10k35 was not found in /var/www/html/wp-content/plugins/omise/includes/libraries/omise-php/lib/omise/exception/OmiseExceptions.php:30
Stack trace:
#0 /var/www/html/wp-content/plugins/omise/includes/libraries/omise-php/lib/omise/res/OmiseApiResource.php(153): OmiseException::getInstance()
#1 /var/www/html/wp-content/plugins/omise/includes/libraries/omise-php/lib/omise/res/OmiseApiResource.php(53): OmiseApiResource->execute()
#2 /var/www/html/wp-content/plugins/omise/includes/libraries/omise-php/lib/omise/OmiseSchedule.php(18): OmiseApiResource::g_retrieve()
#3 /var/www/html/wp-content/plugins/omise/includes/admin/views/omise-page-reports.php(38): OmiseSchedule::retrieve()
#4 /var/www/html/wp-content/plugins/omise/includes/class-omise-admin.php(69): include_once('/var/www/html/w...')
#5 /var/www/html/wp-includes/class-wp-hook.php(287): Omise_Admin->page_reporting()
#6 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#7 /

test_omise_customer_id does not exists

Hi i am testing on woocommerce and i get this error

Trying to get property 'test_omise_customer_id' of non-object in <b>/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/omise/includes/gateway/class-omise-payment-creditcard.php

WordPress 5.2.3
omise latest version
woocomerce 3.6.5

charge.complete event with status "failed" should not update completed orders

When a customer tries to pay using internet banking and does not complete the process, but created a new charge (using any method) successfully.
The order will be marked as completed when the second charge is successful, but when the first charge is timed out. The event charge.complete will be fired and the order will be marked as failed

The charge.complete event handler should check whether the order is already completed before updating the order as failed

PHP 7.0

Hello,

we have updated PHP to 7.0 due to WooCommerce and WordPress 4.7.1 compatibility, however, our Omise gateway has completely stopped working.
Could you please provide some information on how to fix this?

Shop URL: https://www.siamtravel.net/tour/elephant-trekking-animal-shows-funny-day-safari
You can test it out by choosing a date + some people, going through checkout and adding some random info there, after choosing Omise (it is in test mode now), when you will try to Place Order, errors will appear on chrome console.

Thanks.

Wordpress action hooks for installment payment

Could you please advise if you have a Wordpress action hook right after event charge.complete for installment payment?

The requirement is to get detail such as number of terms and type (which bank) of a complete installment payment and display on "Thank you" page in Woocommerce.

P.S. I'm using omise-woocommerce version 3.4.

Set data-location on omise.js

Omise support suggested to us, to add the parameter data-location with yes to the loading of omise.js to show the form with address fields to minimize errors and issues with UK/EU/US credit cards. This feature should be added as checkbox to the advanced setup section of the plugin.

Thank you for contacting Omise Support Team!

You are correct. When a customer make a payment using a card that's issued from USA, UK, Canada Bank Country there will be AVS Verification that require payer to input their address and postal code information to pass authorisation process.

Recently, Omise provided new address fields added to Omise.js to support AVS verification that require your site to make a change to add new address fields in Check out form.

In order to include address field i.e. postal, city. You can set Omise.js parameter data-location as yes

For more information please visit :
https://www.omise.co/How-to-improve-my-authorization-rate-for-US-UK-and-Canadian-cardholders
https://www.omise.co/omise-js

Omise-WooCommerce 3.2 can't be activated.

Environment:

WordPress 4.9.4
WooCommerce 3.3.4: active
Omise-WooCommerce 3.2
Result: Plugin deactivated. The Omise WooCommerce plugin requires WooCommerce to be installed and active.

Environment:

WordPress 4.9.4
WooCommerce 3.3.5: active
Omise-WooCommerce 3.2
Result: Plugin deactivated. The Omise WooCommerce plugin requires WooCommerce to be installed and active.

Environment:

WordPress 4.9.4
WooCommerce 3.3.4: active
Omise-WooCommerce 3.1
Result: activated

Plugin does not support USD currency

I got this error while testing Omise credit card payment in test mode with WooCommerce currency setting as "United States Dollar ($)".

Seems we cannot process your payment properly:
amount must be greater than or equal to 2000 (thb subunits). $0.09 converts to approximately 288 (thb subunits) and amount must be an integer

Mobile banking doesn't work (URGENT)

Hello,
We have been facing this weird problem that mobile banking options are not working and showing this message.

WhatsApp Image 2023-11-02 at 8 20 11 AM

Kindly help us to fix this very urgent.

Regards,
Vamsi J

How to make plugin support USD

At product price page i want it to show the real price of USD like
20$ but if i proceed check out it will send the price divide by 100

Fatal error, if install Omise plugin before WooCommerce

WordPress can not be operated both frontend and backend, if Omise plugin has been installed and activated before installing WooCommerce.

The error message is shown in the screenshots below.

Frontend

frontend-error

Backend

backend-error

WordPress 4.8.2
Omise WooCommerce 3.1

Steps to reproduce

  • Fresh install WordPress
  • Go to backend, Plugins > Add New
  • Install Omise plugin (WooCommerce has not been installed)
  • Activate Omise plugin

Although, WooCommerce has been installed and activated before Omise plugin, if WooCommerce has been deactivated, the error result is the same.

is it compatible with WooCommerce 5.x?

The versions of the following plugins you're running haven't been tested with WooCommerce 5.0. Please update them or confirm compatibility before updating WooCommerce, or you may experience issues

Plugin Tested up to WooCommerce version
Omise Payment Gateway unknown

Improve checkout form

The checkout form needs the following improvements:

  • Change card date to a dropdown list with data that Omise API accepts. Instead of using input use select. (#14)
  • Add option to translate and change field / Button texts for multilingual websites
  • Add Omise seal logo (Secured by Omise)

Automatic Recurring Payments

Hi, Iโ€™m looking to use the Omise card payment gateway as an automatic recurring payment option when a user add a subscription product. Does this plugin currently have the ability to do this?

If this is possible, how can you set this up?

If its not possible, will this be something that will be added in the future?

Thanks in advance!

Omise v3.0 doesn't support for legacy WooCommerce (v2.x)

There is a request from our merchant asking for Omise-WooCommerce v3.0 to support WooCommerce v2.6.14.

I've investigated and found that there are some WooCommerce's functions (from WooCommerce v3.x) that have been using in Omise-WooCommerce v3.0 that hadn't existed in WooCommerce v2.x

For example, in WooCommerce v3.x there is a function called WC_Abstract_Order::get_currency(). But in WooCommerce v2.x it instead, calls WC_Abstract_Order::get_order_currency().

There are some more, those made Omise-WooCommerce cannot be used with WooCommerce 2.x.


This ticket is here to discuss and provide an update on this issue.

All thought and suggestions are welcome as well :)

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.