refactor payment_data_fetch.rb