Skip to content

Commit ac91b4c

Browse files
authored
Updates the README.md file.
Updates the README.md file with more readable examples
1 parent 3f28481 commit ac91b4c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,14 @@ $response = $response->send();
9797
### Status
9898

9999
```php
100-
$request = $gateway->fetchTransaction([
100+
$data = [
101101
'ContractProfileId' => '85cf0581-36e2-45c7-8d8c-a24c6f52902c',
102102
'AmountInCents' => 1337,
103103
'CurrencyCode' => 'EUR',
104104
'Reference' => '829c7998-6497-402c-a049-51801ba33662',
105-
]);
105+
];
106+
107+
$request = $gateway->fetchTransaction($data);
106108

107109
$response = $request->send();
108110
```
@@ -113,12 +115,14 @@ $response = $request->send();
113115
*Do note: refunds implementation has not been tested.*
114116

115117
```php
116-
$request = $gateway->refund([
118+
$data = [
117119
'ContractProfileId' => '85cf0581-36e2-45c7-8d8c-a24c6f52902c',
118120
'AmountInCents' => 1337,
119121
'CurrencyCode' => 'EUR',
120122
'Reference' => '829c7998-6497-402c-a049-51801ba33662',
121-
]);
123+
];
124+
125+
$request = $gateway->refund($data);
122126

123127
$response = $request->send();
124128
```

0 commit comments

Comments
 (0)