Skip to content

Commit d04bf1c

Browse files
authored
Update README.md to reflect the changes regarding setting metadata
1 parent 1193661 commit d04bf1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ $response =
7878
->setCallbackUrl('http://michaelakanji.com') // to override/set callback_url, it can also be set on your dashboard
7979
->setEmail( '[email protected]' )
8080
->setAmount( 75000 ) // amount is treated in Naira while using this method
81+
->setMetadata(['custom_field1' => 'value1', 'custom_field2' => 'value2'])
8182
->initialize();
8283
```
8384
If you want to get the 200OK raw Object as it is sent by Paystack, Set the 2nd argument of the `initialize()` to `true`, example below

0 commit comments

Comments
 (0)