Skip to content

Commit

Permalink
Merge pull request #86 from Nelwhix/master
Browse files Browse the repository at this point in the history
adding Explanation on how to pass in metadata in the docs
  • Loading branch information
iamraphson authored Jan 4, 2024
2 parents 327f9fd + c9c9337 commit 1918a13
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 1918a13

Please sign in to comment.