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

[BUG] Unable to place order with Authorize.Net CIM with hyva checkout #14

Open
chandresh-repo opened this issue Jan 10, 2025 · 1 comment
Labels
bug Something isn't working question Further information is requested

Comments

@chandresh-repo
Copy link

🐛 Bug report

Current Behavior

On checkout page after enter card details and place order button click error throws from magewire/post/livewire/message/checkout.payment.method.authnetcim request
error was TypeError: Cannot access offset of type string on string in /srv/public_html/vendor/paradoxlabs/authnetcim/Observer/PaymentMethodAssignDataObserver.php:285

Payment was deducted from card but order was not placed.

authcarderror

Expected Behavior

After place order button clicked order was place and success page occurred.

Minimal reproduction of the problem with instructions

Enable module and setup sandbox detail
Go to checkout page and select Autorize credit card payment and enter card details
Click on place order button than error throw.

What is the motivation / use case for changing the behavior?

Environment


Authnetcim version: 5.1.2
Magento version: 2.4.7-p3
PHP version: 8.2


Others:

@chandresh-repo chandresh-repo added the bug Something isn't working label Jan 10, 2025
@rhoerr
Copy link
Member

rhoerr commented Jan 10, 2025

Thanks for the report. The error line appears to be:

https://github.com/ParadoxLabs-Inc/authnetcim/blob/master/Observer/PaymentMethodAssignDataObserver.php#L285

            $card->setPaymentId($result['customerPaymentProfileIdList']['numericString']);

suggesting $result['customerPaymentProfileIdList'] is a string in this case. I haven't seen that in my testing.

Could you email your tokenbase-debug.log or tokenbase.log file to support@paradoxlabs.com, and reference this issue (github #14)? That should let us see the exact API data that caused the error.

Thank you

@rhoerr rhoerr added the question Further information is requested label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants