Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

More than one Configured AdyenHPP Payment Causes Redirect Controller to Fail #8

Description

@geofflane

If you have a "Production" and a "Development" AdyenHPP payment method configured in the same application, the AdyenRedirectController#payment_method might fail.

It uses Gateway::AdyenHPP.last which just picks up the last configured one. I overrode it to Gateway::AdyenHPP.where(active: true).last to at least try and get one that's active. It might be better to also look at the environment the application is running under and the one that is configured in the PaymentMethod.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions