Skip to content

Conversation

@thedev132
Copy link
Member

Summary of the problem

Send ACH Transfer via mobile would be cool

Describe your changes

/api/v4/ach_transfers POST would create a new ACH transfer. Most logic was copied from the web controller.

def create
@ach_transfer = @event.ach_transfers.build(ach_transfer_params.except(:file).merge(creator: current_user))
authorize @ach_transfer
if @ach_transfer.amount > SudoModeHandler::THRESHOLD_CENTS
return unless enforce_sudo_mode # rubocop:disable Style/SoleNestedConditional
end
if @ach_transfer.save
if ach_transfer_params[:file]
::ReceiptService::Create.new(
uploader: current_user,
attachments: ach_transfer_params[:file],
upload_method: :transfer_create_page,
receiptable: @ach_transfer.local_hcb_code
).run!
end
redirect_to event_transfers_path(@event), flash: { success: "ACH transfer successfully submitted." }
else
render :new, status: :unprocessable_entity
end
end

@thedev132 thedev132 requested review from a team as code owners October 15, 2025 05:10
thedev132 and others added 4 commits October 14, 2025 22:16
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

@Luke-Oldenburg Luke-Oldenburg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants