Skip to content

Improve webhook handler #2

@muzzwood

Description

@muzzwood

Turns out that Omise will send a request to the registered webhook for ANY transaction. Regardless of whether the method requires a webhook.

For the methods that don't use a webhook, errors are being generated in the log because the wrong payment method id is used as the get param.

https://github.com/digitalpenguin/Commerce_Omise/blob/master/core/components/commerce_omise/src/Gateways/PromptPay.php#L72

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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