Type Error - TransactionHandlerService:saveCommercePayment() does not extract currency correctly from the invoice object

Created on 20 September 2023, 9 months ago
Updated 11 June 2024, 17 days ago

Problem/Motivation

There is a type error thrown in TransactionHandlerService::responseHandler as the currency is not extracted properly from the invoice object.

Steps to reproduce

Webhook runs and attempts to complete the payment. This only happens on the webhook as the datastructure of the invoice object differs between that used on the onReturn and that sent by the webhook.

Datastructure with webhook (both version 2022-01-18, the recommended version on the Payrexx Drupal page, and the latest version, currently 2022-11-29)

Datastructure from onReturn

Proposed resolution

Correctly extract the currency correctly in both cases.

Remaining tasks

MR to follow.

User interface changes

None.

API changes

None.

Data model changes

None

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland tcrawford

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024