DEV Community

Discussion on: How to Integrate Paystack payment system

Collapse
 
ijsucceed profile image
Jeremy Ikwuje

Sure, you can do that by passing those form data through the metadata array during initialization:

  'callback_url' => $callback_url,
  'metadata' => [
      'custom_fields' => [
        "first_name" => "John",
        "last_name" => "Micheal",
        'cart_id' => 84920392,
        "custom" => "any thing here"
      ]
   ]