Hi,
You don’t need to send data to this hook. You have to receive data from this hook.
Here you get the submitted data of the form entry $submission, and the $transaction has the vendor transaction data. If you want to validate a specific form use $form_id then. If you want certain data to be stored in the database no need to receive or use those $submission, $transaction, $form_id, $updateData
variables just call the action to do whatever you want.
Example use case for your purpose:
add_action('wppayform/form_payment_success',function($submission, $transaction, $form_id, $updateData
){
// store your data on your database
}, 10, 4);
Thanks