DEV Community

Discussion on: How to Integrate Paystack payment system

Collapse
 
afomaverick profile image
💲 Maverick💲

Can you help me please? I want to be able to submit a form on the basis of a successful paystack payment, is there any way to go about this>

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"
      ]
   ]
Collapse
 
niel_som profile image
justchisom_☁

Are you using laravel??