Skip to content

Feature request: Implement displayPaymentEU hook #1

@elund

Description

@elund

Hello,

I would like to request that you implement the displayPaymentEU hook.
Seems like you have only implemented the old approach: The displayPayment.
The problem is that some newer and more modern checkout pages only support the newer approach.

The displayPayment - the older approach - simply emits HTML code with all payment functionality into a page. And the expectation is that the page to be standard checkout page. This is very easy and convenient for developers, but it's very "hardcoded". It works on standard (or slightly modified) checkout page only.

The displayPaymentEU approach is a declarative approach. Instead of emitting HTML, the module describe what is needed to do in order to process payment. And it's responsibility of checkout page to display the HTML and call the payment functions when needed. This makes it very easy to switch between checkout pages.

Most payment modules implement both approaches. And it shouldn't be hard to implement.

Thanks in advance,
Elund

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions