-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
DocumentationThis issue is documentation related.This issue is documentation related.Status: BacklogThis is currently on our backlog and not scheduled yet.This is currently on our backlog and not scheduled yet.
Description
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..',
]);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DocumentationThis issue is documentation related.This issue is documentation related.Status: BacklogThis is currently on our backlog and not scheduled yet.This is currently on our backlog and not scheduled yet.