mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 03:54:08 +00:00
Skip Stripe lookup when payment link id is missing
Agent-Logs-Url: https://github.com/we-promise/sure/sessions/efba0c75-5f82-41a1-b618-532d38e222da Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
7a9d207626
commit
2a3e95efc9
@@ -5,7 +5,7 @@ class Settings::PaymentsController < ApplicationController
|
||||
|
||||
def show
|
||||
@family = Current.family
|
||||
@one_time_contribution_url = stripe&.payment_link_url(payment_link_id:)
|
||||
@one_time_contribution_url = stripe&.payment_link_url(payment_link_id:) if payment_link_id.present?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user