Skip to content

Commit

Permalink
added metadata explanation to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelwhix committed Jul 8, 2023
1 parent ab4caa1 commit c9c9337
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,25 @@ import './App.css';
export default App;
```

### Sending Metadata with Transaction
If you want to send extra metadata e.g. Transaction description, user that made the transaction. Edit your config like so:

```ts
const config = {
// Your required fields
metadata: {
custom_fields: [
{
display_name: 'description',
variable_name: 'description',
value: 'Funding Wallet'
}
// To pass extra metadata, add an object with the same fields as above
]
}
};
```

Please checkout [Paystack Documentation](https://developers.paystack.co/docs/paystack-inline) for other available options you can add to the tag

## Deployment
Expand Down

0 comments on commit c9c9337

Please sign in to comment.