unicodeveloper / laravel-paystack

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

firstname, lastname are not submitted during transaction #136

Closed Adamcy-lvts closed 3 years ago

Adamcy-lvts commented 3 years ago

I don't understand why additional input like first name, last name, phone are not submitted to paystack only the default inputs form the sample form like email, amount, metadata are submitted when making transaction, Please Help I was stuck with this for a while now, @unicodeveloper @ibrahimlawal @MohammedIsma pls help.

here is what the form looks like

        <input type="hidden" name="email"      value="{{auth()->user()->email}}"> {{-- required --}}
        <input type="hidden" name="first_name" value='auth()->user()->name'>
        <input type="hidden" name="last_name"  value="More">
        <input type="hidden" name="amount"     value="1000000">
        <input type="hidden" name="quantity"   value="1">
        <input type="hidden" name="phone"      value="07060741999">
        <input type="hidden" name="metadata"   value="{{ json_encode($array = ['key_name' => value,]) }}" > {{-- For other                necessary things you want to add to your payload. it is optional though --}}
        <input type="hidden" name="reference"  value="{{ Paystack::genTranxRef() }}"> {{-- required --}}