I created the plugins and added custom fields on the checkout page like payment_mode & transaction id.
public function process_payment( $order_id ) {