Skip to content

Added custom amounts for generating oneoff links#114

Open
maricavor wants to merge 5 commits intomasterfrom
add_partial_payments
Open

Added custom amounts for generating oneoff links#114
maricavor wants to merge 5 commits intomasterfrom
add_partial_payments

Conversation

@maricavor
Copy link
Copy Markdown
Contributor

@maricavor maricavor commented Jun 6, 2024

@maricavor maricavor requested a review from OlegPhenomenon June 26, 2024 07:16
def payment_reference_must_change
if payment_reference.present? && payment_reference == payment_reference_was
errors.add(:payment_reference, 'must be different from the existing payment reference')
end
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think better will be

def payment_reference_must_change
    return unless payment_reference.present? && payment_reference == payment_reference_was

    errors.add(:payment_reference, 'must be different from the existing payment reference')
end

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.

Enable partial card payments

2 participants