DEV Community

Discussion on: How to Integrate Paystack payment system

Collapse
 
1delcab profile image
1delcab

Nice and clear explanation.

My problem is that the call back function does not provide the payment details (I.e the customer email) so as to insert in it MySQLi data base.
Or I'm to use session to keep the record

Collapse
 
ijsucceed profile image
Jeremy Ikwuje

The payment details are usually sent (as JSON) to your webhook url.

But, just like you said, you should use the user session, then make sure you verify the session with the user details in your database.