Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Undefined array key "giftcard" in /Helper/GiftcardPayment.php on line 116 #2882

Open
dimitriBouteille opened this issue Feb 11, 2025 · 1 comment · May be fixed by #2883
Open

Warning: Undefined array key "giftcard" in /Helper/GiftcardPayment.php on line 116 #2882

dimitriBouteille opened this issue Feb 11, 2025 · 1 comment · May be fixed by #2883
Assignees
Labels
Bug report Indicates that issue has been marked as a possible bug

Comments

@dimitriBouteille
Copy link
Contributor

Describe the bug

When I test zip gateway and cancel payment in zip interface, I have the following error :

Warning: Undefined array key "giftcard" in /Helper/GiftcardPayment.php on line 116

Here is an example of the state data :

{"paymentMethod":{"type":"zip","checkoutAttemptId":"fetch-checkoutAttemptId-failed"},"riskData":{"clientData":"XXX"},"browserInfo":{"acceptHeader":"*\/*","colorDepth":24,"language":"fr-FR","javaEnabled":false,"screenHeight":1200,"screenWidth":1920,"userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/125.0.0.0 Safari\/537.36","timeZoneOffset":-60}}

To Reproduce
Steps to reproduce the behavior:

  1. Setup zip gateway with test env
  2. Place order with zip money
  3. Cancel payment in zip money interface
  4. Go to /checkout/cart
  5. 💥

Magento version

2.4.7

Plugin version

9.14.0

@dimitriBouteille dimitriBouteille added the Bug report Indicates that issue has been marked as a possible bug label Feb 11, 2025
@candemiralp candemiralp self-assigned this Feb 12, 2025
@candemiralp
Copy link
Member

Hello @dimitriBouteille,

Thank you for reporting this issue and providing the fix at the same time! We appreciate your contribution. We will check the PR and merge when the reviews are completed.

Best Regards,
Can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Indicates that issue has been marked as a possible bug
Projects
None yet
2 participants