iamraphson / react-paystack

ReactJS library for implementing paystack payment gateway
https://www.npmjs.com/package/react-paystack
MIT License
445 stars 159 forks source link

Interface conflicts for the metadata #111

Open danieljohnson18 opened 2 months ago

danieljohnson18 commented 2 months ago

The metadata in the PaystackProps has conflicting interfaces for the metadata field, this flags type when defining custom meta data fields. Please have this checked.

`interface PaystackCustomFields { display_name: string; variable_name: string; value: any; } interface PaystackMetadata { custom_fields: PaystackCustomFields[]; } interface PaystackMetadata {

}`