Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Notifications
- module SlackServices
- class UserBuyRequest < ::Notifications::SlackServices::Base
- def notify_text
- "#{ENV['APP_NAME']}: New Payment #{user&.full_name}"
- end
- def message
- default_message_params[:fields].push({ title: 'Subscription Plan',
- value: user&.subscription_plan&.capitalize.gsub("_", " ").gsub(/\b./, &:upcase),
- short: true })
- #default_message_params
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement