Methods
- S
Included Modules
Instance Public methods
show() Link
Source: show
# File app/controllers/v2/memberships/deferred_payments_controller.rb, line 7 def show if subscription.pending_intent_id if cancellable_payment_intent? render json: payment_intent, serializer: PaymentIntentSerializer else error = I18n.t("membership.payment_intent.errors.gone") render_error(error, :gone) end else error = I18n.t("membership.payment_intent.errors.not_found") render_error(error, :not_found) end rescue Stripe::InvalidRequestError => e render_error(e.message, :not_found) end