Code Monkey home page Code Monkey logo

omise-magento'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 Magento is our official plugin providing support for processing payments on Magento through Opn Payments.

Security Warning

Please do NOT use Omise Magento plugin versions less than 2.18.6, 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 Magento. Pull requests, issues, and bugfixes are welcome!

omise-magento's People

Contributors

aashishgurung avatar ajzkk avatar ashraf-alkibsi avatar danfowler avatar duzydook avatar fred avatar guzzilar avatar hpariwat avatar jacstn avatar jonrandy avatar kan98 avatar mayurkathale avatar muthuswamyopn avatar new4762 avatar nimid avatar nimitomise avatar nlogx avatar som-m avatar sushil-omise avatar timothyomise avatar tookaa2 avatar winnielive 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

Watchers

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

omise-magento's Issues

Paying By Debit/Credit Card - invalid security code: the security code is invalid

This is a bit of a strange one. I cannot reproduce the issue but we get soooo many complaints.

Magento 2.3.2
omise -magento 2.10
Magento Omise Settings
Credit Card Solution Enable
Payment Action Authorize and Capture
3-D Secure Yes

Customer is on the checkout page enters card details and receive a payment error message. In Omise backend it reports invalid security code: the security code is invalid

We have spoke to sooo many customers and they all say the same thing. The security code is 100% correct and they have used their cards on other sites without problems

What could be causing this?
The only thing i could think of is browser auto complete forms and the security code field gets auto field with a password???

Do you have any ideas?

setup:di:compile error

I got problem when run
php bin/magento setup:di:compile at version 2.1.6 and 2.2.x
error:

[ReflectionException]                            
  Class Omise\Payment\Model\Config does not exist 

I did not found class Model/config at code folder.

Need Omise's keys dialogue in checkout

We are running Magento 1.9.2.4 using a custom checkout (Firecheckout module). We've installed omise-magento 1.9.0.6 which says this issue is fixed. As a dependency we have omise-php 2.5.0 (Side note: The omise-magento readme doc says it requires 2.4.0 but we couldn't get it to work with 2.4.0 either).

spectacle bh4872

Please can you suggest how to investigate or fix for this?

Omise not working with Multi Currency

Hi there
I have an issue with Omise payment on my site, I have multi website and multi currency.
my Root Config, Currency is MYR
in singapore, currency is SGD

But when I was placing order, I got the message : Placing an order with quote_id 316 is failed: Transaction has been declined. Please try again later.

can anyone here help me or give me some advice, Thanks all!

Can not Place order with Omise payment

Hi team,
We installed Omise payment follow step by step of your document and config it. But extension not working for me. After choose payment method when checkout, it not working. I got error:

message
:
"An error occurred on the server. Please try to place the order again."
trace
:
"#0 /var/www/html/magento2.1.6/vendor/magento/framework/Interception/Interceptor.php(146): Magento\Checkout\Model\PaymentInformationManagement->savePaymentInformationAndPlaceOrder(3, Object(Magento\Quote\Model\Quote\Payment), Object(Magento\Quote\Model\Quote\Address))↵#1 /var/www/html/magento2.1.6/var/generation/Magento/Checkout/Model/PaymentInformationManagement/Interceptor.php(26): Magento\Checkout\Model\PaymentInformationManagement\Interceptor->___callPlugins('savePaymentInfo...', Array, Array)↵#2 [internal function]: Magento\Checkout\Model\PaymentInformationManagement\Interceptor->savePaymentInformationAndPlaceOrder(3, Object(Magento\Quote\Model\Quote\Payment), Object(Magento\Quote\Model\Quote\Address))↵#3 /var/www/html/magento2.1.6/vendor/magento/module-webapi/Controller/Rest.php(307): call_user_func_array(Array, Array)↵#4 /var/www/html/magento2.1.6/vendor/magento/module-webapi/Controller/Rest.php(216): Magento\Webapi\Controller\Rest->processApiRequest()↵#5 /var/www/html/magento2.1.6/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(24): Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http))↵#6 /var/www/html/magento2.1.6/vendor/magento/framework/App/Http.php(135): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))↵#7 /var/www/html/magento2.1.6/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()↵#8 /var/www/html/magento2.1.6/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))↵#9 {main}"
Thanks!

setup:di:complie issue on Omise\Payment\Block\Adminhtml\System\Config\Form\Field\Webhook

Preconditions (*)

  1. Magento All versions
  2. Omise Payment 2.27.0

Steps to reproduce (*)

  1. bin/magento setup:di:complie

Expected result (*)

  1. No di compile error during deployment

Actual result (*)

  1. Omise\Payment\Block\Adminhtml\System\Config\Form\Field\Webhook
    Incorrect dependency in class Omise\Payment\Block\Adminhtml\System\Config\Form\Field\Webhook in vendor/omise/omise-magento/Block/Adminhtml/System/Config/Form/Field/Webhook.php
    \Magento\Store\Model\StoreManagerInterface already exists in context object

[BUG] Prevent retrieve authentication while module was not configured or key not added yet

Steps to reproduce

  • Magento 2.2.7
  • Fresh install module
  • Payment was not configured or added any key

Expected result

  • From checkout or every constructor class will not call retrieve or authentication data or anything else, unless the module enabled(key added)

Actual result

  • Got Exception on some __construct while the authentication was called but module was not used(key not added)

image

image

Webhooks not working - Invalid payment method. Please contact our support if you have any questions.

Expected behavior

Customer create an order, select the payment method "Prompt Pay" or "Credit / Debit", enter details or scan code. Order is place into magento, sales order email is sent to the customer and webhook updated if payment is complete or not.

Actual behavior

Customer create an order, select the payment method "Prompt Pay" or "Credit / Debit", enter details or scan code. Order is place and set to "payment pending". No sales order email is send and Its doesnt update unless you click the "Sync Order Status Maunaly". When you click "Sync Order Status Maunaly" then the sales order email is sent to customers and status changes to "Proccessing"

Steps to reproduce the issue

Customer create an order, select the payment method "Prompt Pay" or "Credit / Debit", enter details or scan code.

Logs

No logs or errors in debug logs. However when i copy the webhock URL from the OPN panel its returns a error message of "Invalid payment method. Please contact our support if you have any questions"

Screenshots

No response

Name and version information

Magento 2.4.6-p3
Omise Version 3.5.2 (also tried order versions)
php 8.1
nginx

Version 2.8 dicompile error - Omise\Payment\Controller\Cards\DeleteAction

Hello,

Env:
Magento 2.2.7
Php 7.1.30

After updating to version 2.8 on di:complie comand we get the following error

Omise\Payment\Controller\Cards\DeleteAction
Extra parameters passed to parent construct: $customerSession. File: /var/www/schmidt.co.th/web/vendor/omise/omise-magento/Controller/Cards/DeleteAction.php

Also not sure if its due to the dicompile error but when i choose internet banking i an not redirected to the banks page. Instead i am redirected to the Magento 2 My Account Page??

Please advise. We have been waiting along time to reactive internet banking

Upgrading from version 2.4 to version 2.5. Class not found 'OmiseCapabilities'

Dear Omise,

I have upgraded both omise-php(2.91) and omise magento(2.5) and get the following error
PHP message: PHP Fatal error: Uncaught Error: Class 'OmiseCapabilities' not found in /var/www/clients/client1/web1/web/vendor/omise/omise-magento/Model/Api/Capabilities.php:13
Stack trace:
#0 /var/www/clients/client1/web1/web/vendor/magento/framework/ObjectManager/Factory/Compiled.php(60): Omise\Payment\Model\Api\Capabilities->__construct()
#1 /var/www/clients/client1/web1/web/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Omise\Payment\M...')
#2 /var/www/clients/client1/web1/web/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Omise\Payment\M...')
#3 /var/www/clients/client1/web1/web/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Omise\Payment\M...')
#4

I have flush cache, setup upgrade, di:compile, restarted varnish, pushed files to content server and still the same message.

My system setup is:
OS: centos7
PHP: php70w-fpm
Cache: varnish and redis
Magento 2.2.5
CDN: AWS Cloudfront

I have been waiting for this upgrade after you moudle upgraded to 2.4 and had so many problems and now i cannot use it and i cannot downgrade back to 2.4 ?

Please advise

Cancelling payment with Internet Banking

In Magento 1.x, using the newest plugin (multicurrency), when I choose Internet Banking, cancel even on bank login page and go back to Merchant, I am redirected to success page without paying.

Magento 2.4.3-p1: After amount captured 2 invoices are generated!

I have been using Omise with my Magento 2.2.10 setup. It has been quite smooth so far.

I am try in the process of migrating to Magento 2.4.3-p1. I have setup a development environment on 2.4.3-p1. Php version 7.4. All codes are updated to the latest including Omise to 2.20.3. Omise is running in SANDBOX mode.

As I am from Singapore, I accept credit cards and PayNow on my site.

For credit cards, I have configured payment action to "Authorized and capture" amount.
I entered an other using credit card payment and entered valid credit card details:-
Expected: Upon order confirmation, the amount is suppose to be captured, order status changed to "Processing" and one invoice generated "Paid".
Actual: Upon order confirmation, the amount is suppose to be captured, order status changed to "Processing" and 2 invoices are generated. One with order amount and status "Pending", invoice number is . The 2nd order has zero amount and status "Paid", invoice number=-1.

For PayNow,
I entered order and select PayNow as payment option. Amount is set to captured on Sandbox backend. Run sync order status on Magento backend:-
Expected: Order confirmation status change from Pending Payment to Processing. Invoice status change from pending to Paid.
Actual: Order confirmation status change from Pending Payment to Processing. Invoice remains as pending status. A new invoice with zero amount is created with paid status and invoice number =-1.

I have also tried using Paypal as payment and the order process does not have similar problems.

Content Security Policy: The page’s settings observed the loading of a resource at https://cdn.omise.co/omise.js.gz (“script-src”). A CSP report is being sent.

Preconditions (*)

  1. Magento 2.4.x
  2. Omise Payment 2.27.0

Steps to reproduce (*)

  1. Configure the module
  2. Checkout with the Omise Payment

Expected result (*)

  1. No console log error regarding to CSP report

Actual result (*)

  1. Content Security Policy: The page’s settings observed the loading of a resource at https://cdn.omise.co/omise.js.gz (“script-src”). A CSP report is being sent.

Order Number Not Being Passed For Internet Banking/Installments

Environment:

PHP 7+
Magento 2.2.7 -> 2.3.2
Nginx
Varnish
Ubuntu 18.04
Custom Theme

Steps to reproduce:

  1. Add items to cart
  2. Click Checkout and login to site
  3. Enter Shipping/Billing info
  4. Select delivery options
  5. Choose internet banking or installment payemnt
  6. Click place order

Error:

GET http://********/en/rest/en/V1/orders//omise-offsite?_=1564125581958 400 (Bad Request)

Code causing the problem:

` function(response) {
var self = this;

                    var serviceUrl = urlBuilder.createUrl(
                        '/orders/:order_id/omise-offsite',
                        {
                            order_id: response
                        }
                    );

`
Expected Results:

Customer forwarded to payment gateway

This only happens with version omise-magento 2.8 amd didnt happen in previous versions. If i have a clean installation of magento i cannot reproduce the issue. This issue only happens with a custom theme.

Magento 2.4.3 error on Checkout page.

test with Magento 2.4.3 Fresh install with Sample data on PHP 7.4
on Checkout page will show this error.

1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): unable to load OmiseCapabilities api

Exception #0 (Magento\Framework\Exception\LocalizedException): unable to load OmiseCapabilities api
<pre>#1 Magento\Framework\ObjectManager\Factory\Compiled->create() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:150]
#2 Magento\Framework\ObjectManager\Factory\Compiled->get() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:79]
#3 Magento\Framework\ObjectManager\Factory\Compiled->create() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:150]
#4 Magento\Framework\ObjectManager\Factory\Compiled->get() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:79]
#5 Magento\Framework\ObjectManager\Factory\Compiled->create() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:150]
#6 Magento\Framework\ObjectManager\Factory\Compiled->get() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:125]
#7 Magento\Framework\ObjectManager\Factory\Compiled->parseArray() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:86]
#8 Magento\Framework\ObjectManager\Factory\Compiled->create() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:150]
#9 Magento\Framework\ObjectManager\Factory\Compiled->get() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:79]
#10 Magento\Framework\ObjectManager\Factory\Compiled->create() called at [vendor/magento/framework/ObjectManager/ObjectManager.php:56]
#11 Magento\Framework\ObjectManager\ObjectManager->create() called at [vendor/magento/framework/View/Element/BlockFactory.php:46]
#12 Magento\Framework\View\Element\BlockFactory->createBlock() called at [vendor/magento/framework/View/Layout/Generator/Block.php:272]
#13 Magento\Framework\View\Layout\Generator\Block->getBlockInstance() called at [vendor/magento/framework/View/Layout/Generator/Block.php:252]
#14 Magento\Framework\View\Layout\Generator\Block->createBlock() called at [vendor/magento/framework/View/Layout/Generator/Block.php:229]
#15 Magento\Framework\View\Layout\Generator\Block->generateBlock() called at [vendor/magento/framework/View/Layout/Generator/Block.php:134]
#16 Magento\Framework\View\Layout\Generator\Block->process() called at [vendor/magento/framework/View/Layout/GeneratorPool.php:93]
#17 Magento\Framework\View\Layout\GeneratorPool->process() called at [vendor/magento/framework/View/Layout.php:365]
#18 Magento\Framework\View\Layout->generateElements() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#19 Magento\Framework\View\Layout\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#20 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#21 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:68]
#22 Magento\Framework\View\Layout\Interceptor->generateElements() called at [vendor/magento/framework/View/Layout/Builder.php:129]
#23 Magento\Framework\View\Layout\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Page/Builder.php:65]
#24 Magento\Framework\View\Page\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Layout/Builder.php:65]
#25 Magento\Framework\View\Layout\Builder->build() called at [vendor/magento/framework/View/Page/Config.php:224]
#26 Magento\Framework\View\Page\Config->build() called at [vendor/magento/framework/View/Page/Config.php:247]

Internet Banking SCB Order Success When payment cancel - ONLY happens in Live mode

Your Internet Banking Solution here in Thailand causes so many problems. I have disabled it for well over a year now and version 2.10 still the same problems

  1. Customer Cancels on banking page. In live mode with SCB its still creates the order success page with no error. Like the payment has been made. In sandbox mode it creates and error message.
  2. Is there not a way customers can be returned to the payment page when they click cancel??

Magento version 2
omise-magento version 2.10

Issue when Logged Customer checkout cart with seller product by Omise payment

we are using Omise payment for our marketplace site. We get problem when logged in customer checkout cart with product of seller by Omise payment. If we setting payment action is Authorize Only, it work fine.You have any idea for it?
error:
message : "No such entity with orderId = 37"
_"trace":"#0 \/var\/www\/html\/codazon_marketplace\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\\Checkout\\Model\\PaymentInformationManagement->savePaymentInformationAndPlaceOrder(288, Object(Magento\\Quote\\Model\\Quote\\Payment), Object(Magento\\Quote\\Model\\Quote\\Address))\n#1 \/var\/www\/html\/codazon_marketplace\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Magento\\Checkout\\Model\\PaymentInformationManagement\\Interceptor->___callParent('savePaymentInfo...', Array)\n#2 \/var\/www\/html\/codazon_marketplace\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magento\\Checkout\\Model\\PaymentInformationManagement\\Interceptor->Magento\\Framework\\Interception\\{closure}(288, Object(Magento\\Quote\\Model\\Quote\\Payment), Object(Magento\\Quote\\Model\\Quote\\Address))\n#3 \/var\/www\/html\/codazon_marketplace\/generated\/code\/Magento\/Checkout\/Model\/PaymentInformationManagement\/Interceptor.php(26): Magento\\Checkout\\Model\\PaymentInformationManagement\\Interceptor->___callPlugins('savePaymentInfo...', Array, Array)\n#4 [internal function]: Magento\\Checkout\\Model\\PaymentInformationManagement\\Interceptor->savePaymentInformationAndPlaceOrder(288, Object(Magento\\Quote\\Model\\Quote\\Payment), Object(Magento\\Quote\\Model\\Quote\\Address))\n#5 \/var\/www\/html\/codazon_marketplace\/vendor\/magento\/module-webapi\/Controller\/Rest.php(330): call_user_func_array(Array, Array)\n#6 \/var\/www\/html\/codazon_marketplace\/vendor\/magento\/module-webapi\/Controller\/Rest.php(239): Magento\\Webapi\\Controller\\Rest->processApiRequest()\n#7 \/var\/www\/html\/codazon_marketplace\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\\Webapi\\Controller\\Rest->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#8 \/var\/www\/html\/codazon_marketplace\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Magento\\Webapi\\Controller\\Rest\\Interceptor->___callParent('dispatch', Array)\n#9 \/var\/www\/html\/codazon_marketplace\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magento\\Webapi\\Controller\\Rest\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#10 \/var\/www\/html\/codazon_marketplace\/generated\/code\/Magento\/Webapi\/Controller\/Rest\/Interceptor.php(26): Magento\\Webapi\\Controller\\Rest\\Interceptor->___callPlugins('dispatch', Array, Array)\n#11 \/var\/www\/html\/codazon_marketplace\/vendor\/magento\/framework\/App\/Http.php(135): Magento\\Webapi\\Controller\\Rest\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#12 \/var\/www\/html\/codazon_marketplace\/vendor\/magento\/framework\/App\/Bootstrap.php(256): Magento\\Framework\\App\\Http->launch()\n#13 \/var\/www\/html\/codazon_marketplace\/index.php(39): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http\\Interceptor))\n#14 {main}"_

setup:di:compile displays error when install on Magento 2.3

Hi,

I've tried to setup Omise with Magento 2.3, but found the error when run setup:di:compile.

$ php bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/7 [====>-----------------------] 14% < 1 sec 70.5 MiBPHP Fatal error: Cannot use 'Object' as class name as it is reserved in /var/www/html/magento-23/vendor/omise/omise-magento/Model/Api/Object.php on line 7

Fatal error: Cannot use 'Object' as class name as it is reserved in /var/www/html/magento-23/vendor/omise/omise-magento/Model/Api/Object.php on line 7

FYI, test on Ubuntu 18.04 with PHP 7.2

Checkout Problem With Magento 2.2.5

Hello,

My server Setup:
Centos 7
Nginx 1.12.1
Varnish
Redis
Magento 2.2.6
Php 7.0.30

I have successfully install your module and have configured the admin settings with the test api key. Then i enable credit/debit card.

When i go to checkout on the development server i get the following error:

:8083/rest/default/V1/guest-carts/cf5dc89634d04465a703f7f7ea24412b/payment-information:1 Failed to load resource: the server responded with a status of 500 ()
:8083/checkout/#payment:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at Object.process (error-processor.js:28)
at Object. (place-order.js:24)
at fire (jquery.js:3232)
at Object.fireWith [as rejectWith] (jquery.js:3362)
at done (jquery.js:9842)
at XMLHttpRequest.callback (jquery.js:10311)

Upon inspection of the nginx log i found the following error:

2018/07/31 07:26:26 [error] 100651#0: *4657 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class 'OmiseCharge' not found in /var/www/website/web/app/code/Omise/Payment/Model/Api/Charge.php:62
Stack trace:
#0 /var/www/website/web/app/code/Omise/Payment/Gateway/Http/Client/Payment.php(57): Omise\Payment\Model\Api\Charge->create(Array)
#1 /var/www/website/web/vendor/magento/module-payment/Gateway/Command/GatewayCommand.php(102): Omise\Payment\Gateway\Http\Client\Payment->placeRequest(Object(Magento\Payment\Gateway\Http\Transfer))
#2 /var/www/website/web/vendor/magento/module-payment/Model/Method/Adapter.php(546): Magento\Payment\Gateway\Command\GatewayCommand->execute(Array)
#3 /var/www/website/web/vendor/magento/module-payment/Model/Method/Adapter.php(652): Magento\Payment\Model\Method\Adapter->executeCommand('initialize', Array)
#4 /var/www/website/web/generated/code/Magento/Payment/Model/Method/Adapter/Interceptor.php(557): Magento\Payment\Model\Method\Adapter->initialize('authorize_captu...', Object(Magento\Fram" while reading response header from upstream, client: 183.88.227.221, server: test.website.co.th, request: "POST /rest/default/V1/guest-carts/cf5dc89634d04465a703f7f7ea24412b/payment-information HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php-fpm.sock:", host: "test.website.co.th:8083", referrer: "http://test.website.co.th:8083/checkout/"

Any Ideas?

Can not capture an authorized charge

Steps to reproduce

  1. Set omise setting "Payment Action" to "Authorize Only"
  2. Create order
  3. Select "Capture Online" and create invoice data

Expected result

  1. The invoice data is created in Magento and the relevant charge data is captured on omise's dashboard

Actual result

  1. The invoice data can not be created, and the following error message is displayed.
Transaction has been declined. Please try again later.
  1. Even on the omise dashboard charge data is not captured and the following response is left in the log.
{
  "object": "error",
  "location": "https://www.omise.co/api-errors#used-token",
  "code": "used_token",
  "message": "token was already used"
}

As I think, it seems to be trying to create charge data using tokens that have already been used instead of capture the already existing charge data.

Paying By Credit Card - Order does not change processing status when payment success

Hello,
When we update to version 2.18.1, we had a problem order does not change processing status when payment success.

Preconditions (*)

  • Magento version 2.3.4 opensoucre.
  • Omise extension version 2.18.1.

Steps to reproduce (*)

  1. Omise Payment Gateway
  • Sandbox: Yes
  1. Credit Cart Config:
  • Enable: Yes
  • Payment Action: Authorize and Capture
  1. Add product to cart.
  2. Go to checkout.
  3. Paying By Credit Card -> Successful.

Expected result (*)

  • Order change status to processing.

Actual result (*)

  • Order status is "Pending Payment" and does not change processing.
  • Omise sanbox
    image

What could be causing this? is it due to source code?

setup:di:compile Error

[takra@th94 public_html]$ php bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/7 [====>-----------------------] 14% 1 sec 28.0 MiB

[Exception]
Notice: Constant OMISE_PUBLIC_KEY already defined in /home/takra/domains/takraexpress.com/public_html/app/code/Omise/Payment/vendor/omise/omise-php/tests/omise/TestConfig.php on line 4

setup:di:compile

Wrong approach while letting `initialize` command creating transaction

See
https://github.com/omise/omise-magento/blob/v2.27.0/etc/di.xml#L967
https://github.com/omise/omise-magento/blob/v2.27.0/etc/di.xml#L973-L981
https://github.com/omise/omise-magento/blob/v2.27.0/etc/di.xml#L996-L1004

And how the Payment Handle Detail writing a transaction before order was created
https://github.com/omise/omise-magento/blob/v2.27.0/Gateway/Response/PaymentDetailsHandler.php#L67-L82

because

initialize: Instantiate state and set it to state object. writing a new payment transaction might lead
Integrity constraint violation foreign key constraint fails in sales_payment_transaction while model order be saved, it could create(insert) another row to sales_payment_transaction literally this action should be performed after order be saved which is authorize or capture

QR Payment Not being marked as paid once completed

Steps to reproduce
Customer places order on magento and chooses QR payment as payment method
Order is placed and marked in magento as payment pending
Customer then scans the QR code and completes payment

Expected behaviour
Once payment is complete the invoice in magento should be marked as complete.

Actual behaviour
Invoice still marked as payment pending after successful payment

Tested on magento 2.3.4.p2
Nginx
php 7.2

3DS Activate - 3DS Auth fails but Invoice is gernerated and email sent

Hello

I have a problem that in my env we have auto invoice email setup. So when an invoice is generated an email is sent to the customer with the order/invoice details.

A couple of weeks ago omise activated 3DS on credit and debit cards. We have noticed that the invoice is generated before the auth of 3ds is completed thus means the order/invoice is created and a email is sent to the customer.

If the auth fails the invoice/order is cancelled however the customer already has am invoice.

Maybe i am wrong but i think the creation of the order/invoice should happen after 3ds is approved and completed. We had a customer last week who got 5 emails and on her account got 5 cancelled orders.

Preconditions (*)

  1. Magento 2.3.7-p3
  2. Omise 2.27.0

Steps to reproduce (*)

  1. Complete checkout
  2. Enter incorrect credit card details

Expected result (*)
Email and creation of order/invoice should happen after 3DS finishes and is approved

Actual result (*)
an order/invoice is created before 3ds and is cancelled if failed. When customer retries another order is created.

Extension Patch ล่าสุดสำหรับ Magento 1.x มีปัญหา

Extension Patch ล่าสุดมีปัญหานะครับ
เวลาลูกค้าทำรายการเรียบร้อยแล้ว แกติมันต้องขึ้น “เตรียมจัดส่ง” แต่พออัพเดทแล้วมันขึ้น “รอชำระเงิน”
ทั้งๆที่ order มีการ capture เรียบร้อย มียอดเงินเข้ามาในบัญชี omise แล้วครับ แล้วไม่สามารถแก้ Status ของ order เป็นอย่างอื่นได้ด้วยครับ
Patch ก่อนหน้านี้ไม่เป็นนะครับ Patch แรกสุดคือเวลาชำระเงินเรียบร้อย จะขึ้น “รอส่งสินค้า” ตามที่ตั้งไว้
ผมลงทะเบียนเปิดใช้ 3-D กับ omise เรียบร้อยและใช้งานได้ปกติ จนมา Patch นี้ที่มีปัญหาครับ
รบกวนช่วยแก้ด่วยด้วยครับ หรือส่งลิงค์ Patch เก่ามาให้ใช้ Load กลับไปใช้ก่อนก็ดีครับ

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.