Allow modules to interact with the data submitted

Created on 24 December 2018, about 6 years ago
Updated 8 August 2024, 6 months ago

Problem/Motivation

Sometimes, data that are to be submitted in the bank are not easily subject to a list of fields in the payment method settings. For example, the description field can serve as an identifier that needs to be calculated in an abstract way.

Proposed resolution

I was thinking that the module can allow the data to be altered right before the digest is calculated.

Remaining tasks

Throw a drupal_alter right before the digest is calculated.

Notice: Check https://developer.cardlink.gr/api-product/redirect/ under Digest Calculation in response message for the fields used for calculating the digest.

Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

🇬🇷Greece idimopoulos

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇷Greece vensires

    I am somewhat "afraid" of adding such functionality and I explain...
    If we give the option to change all fields of this $data array, then it is possible for developers to break the digest validation mechanism I think - unintentionally at least. Maybe a change of the description field specifically? Or another way to disallow the manipulation of the data not-related to the digest?

  • 🇬🇷Greece vensires

    I raise this first for D8+ and then we can backport it if required.

Production build 0.71.5 2024