error due to removed jQuery once dependency

Created on 25 January 2024, 11 months ago
Updated 12 February 2024, 10 months ago

Problem/Motivation

The javasacript can not load the drop-in interface dring checkout payment step.

Steps to reproduce

I have activated the module.
Create new payment gateways.
Tried to run checkout.
No drop-in interface were shown in step checkout payment.
There were console errors due to jquery once

Proposed resolution

Based on the following article: https://www.drupal.org/node/3158256
I adjust drop-in.js line 61
from
$('#dropin-container', context).once('adyen-drop-in').each(async () => {
to
once('adyen-drop-in', '#dropin-container').forEach(async () => {

Remaining tasks

It is now working , the drop-in interface is being shown properly.
When I chose "credit card", the payment is good received.
However it is not with iDeal.
I kept thrown back to checkout page again after submitting payment.
At this point I'm not sure what the problem is.
Also in console there is error not being able to load iDeal.svg.

Anyway, thank you for your contrib module.
Have a great day.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇩Indonesia winnie80

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024