Skip to content

BA-1133 The transaction payload starts without a capital letter. #240

@ItsRD

Description

@ItsRD

I’ve been working on implementing the refund request in my application, and this is the second time I’ve had to dig through the code to figure out what’s going wrong.

The PHP SDK documentation is quite limited, so I’ve been relying on the general documentation to get refunds working. However, in that documentation the payload parameters start with a capital letter, while in the SDK (Payload.php) the corresponding properties are defined without capitalization. This mismatch can be confusing (at least it was for me).

Is this something that could be improved or aligned in a future update?

As a result, the following does not work:

->refund([
            'Currency' => 'EUR',
            'Invoice' => 'invoice text',
            'AmountCredit' => 4.00,
            'OriginalTransactionKey' => 'transaction key'
            'PushURL' => 'push url..',
        ]);

Metadata

Metadata

Assignees

Labels

DocumentationThis issue is documentation related.Status: BacklogThis is currently on our backlog and not scheduled yet.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions