Skip to content

Is it possible to hook into the CompletePurchaseRequest getTransactionReference() function? #22

@basepack

Description

@basepack

Hi,

I have a use case where the user does not complete their payment and I need to check the previous payment if it is already fulfilled.
However I cannot give an trxid with the CompletePurchaseRequest because of this code:

    public function getTransactionReference()
    {
        return $this->httpRequest->query->get('trxid');
    }

This implementation does not work:

$gateway->completePurchase([ 'trxid' => 'TEST982374982700' ])->send();

So, it is hardcoded that the trxid comes from the request query parameters. Is it somehow possible to circumvent this?

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