unicodeveloper / laravel-paystack

:credit_card: :package: :moneybag: Laravel 6, 7, 8, 9, 10 and 11 Package for Paystack
https://paystack.co
MIT License
593 stars 309 forks source link

Client error: `POST https://api.paystack.co/customer` resulted in a 400 Bad Request response metadata must be of type object #165

Open Adamcy-lvts opened 1 year ago

Adamcy-lvts commented 1 year ago

Client error: POST https://api.paystack.co/customer resulted in a 400 Bad Request response: {"status":false,"message":"\"metadata\" must be of type object"}

This error keeps coming when creating customer with the Paystack::createCustomer() method even when the metadata is empty! Any idea why this error is happening?