Giter VIP home page Giter VIP logo

craft-commerce-wallee's People

Contributors

tonioseiler avatar

Stargazers

 avatar

Watchers

 avatar

craft-commerce-wallee's Issues

Uncaught TypeError: Cannot read properties of null (reading 'style')

Hi guys

Regarding version 2.2.0 running on Craft v4.4.14 and Commerce v4.2.11:

When using the "iframe" setting we're currently getting the script error "_xxx:1377 Uncaught TypeError: Cannot read properties of null (reading 'style')" after clicking on one of our payment option buttons.

It seems like it's just old class/id names that need to be updated in the javascript part of your code (_iframe.html:21):

var handler, 
        elements = document.getElementsByClassName("wallee-pay"), 
        buttonPay = document.getElementById('wallee-pay'),
        loading = document.getElementById('wallee-rest-form-loading');

Kind regards
Meinhard

wallee breaks capturing manual payments

Versions

Craft: 4.8.7
Craft Commerce: 4.5.3
Wallee: 2.3.7

We are using two payment gateways, 1. wallee for online payments and 2. the manual gateway for invoice payments.
For orders using the manual gateway we need to capture the payment manually in the Craft backend but unfortunately the "Make payment" button in the Transactions tab of an order doesn't work anymore (see screenshot).

image

Looking stacktrace that get's returned by the error 500 response I see some wallee functions being called although this order has been made using the manual gateway:

[
  {
    "file": "/var/www/html/vendor/furbo/craft-commerce-wallee/src/gateways/Gateway.php",
    "line": 139,
    "function": "__set",
    "class": "yii\\base\\Component",
    "type": "->"
  },
  {
    "file": "/var/www/html/vendor/craftcms/commerce/src/controllers/OrdersController.php",
    "line": 925,
    "function": "getPaymentFormHtml",
    "class": "craft\\commerce\\wallee\\gateways\\Gateway",
    "type": "->"
  },
  {
    "function": "actionGetPaymentModal",
    "class": "craft\\commerce\\controllers\\OrdersController",
    "type": "->"
  },
  {
    "file": "/var/www/html/vendor/yiisoft/yii2/base/InlineAction.php",
    "line": 57,
    "function": "call_user_func_array"
  },
  {
    "file": "/var/www/html/vendor/yiisoft/yii2/base/Controller.php",
    "line": 178,
    "function": "runWithParams",
    "class": "yii\\base\\InlineAction",
    "type": "->"
  },
  {
    "file": "/var/www/html/vendor/yiisoft/yii2/base/Module.php",
    "line": 552,
    "function": "runAction",
    "class": "yii\\base\\Controller",
    "type": "->"
  },
  {
    "file": "/var/www/html/vendor/craftcms/cms/src/web/Application.php",
    "line": 341,
    "function": "runAction",
    "class": "yii\\base\\Module",
    "type": "->"
  },
  {
    "file": "/var/www/html/vendor/craftcms/cms/src/web/Application.php",
    "line": 642,
    "function": "runAction",
    "class": "craft\\web\\Application",
    "type": "->"
  },
  {
    "file": "/var/www/html/vendor/craftcms/cms/src/web/Application.php",
    "line": 303,
    "function": "_processActionRequest",
    "class": "craft\\web\\Application",
    "type": "->"
  },
  {
    "file": "/var/www/html/vendor/yiisoft/yii2/base/Application.php",
    "line": 384,
    "function": "handleRequest",
    "class": "craft\\web\\Application",
    "type": "->"
  },
  {
    "file": "/var/www/html/web/index.php",
    "line": 12,
    "function": "run",
    "class": "yii\\base\\Application",
    "type": "->"
  }
]

If I disable the wallee plugin everything works fine and I can capture the manual payment.

Craft 5

Hello together

are there plans to continue this plugin for Craft CMS 5?

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.