From c9c9337483f489b6c62415c34401d61fb7f449c5 Mon Sep 17 00:00:00 2001 From: Nelson Isioma <58360242+Nelwhix@users.noreply.github.com> Date: Sat, 8 Jul 2023 01:19:20 +0100 Subject: [PATCH] added metadata explanation to docs --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 5d368f2..0f377c9 100644 --- a/README.md +++ b/README.md @@ -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