Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def create
else
render_error_response(result)
end
rescue BaseService::NotFoundFailure => e
# Raised by the service when billing_entity_code does not resolve.
not_found_error(resource: e.resource)
end

private
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/api/v1/subscriptions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def create
customer.default_payment_method
end

result = PaymentProviders::Stripe::Payments::AuthorizeService.call(
result = ::PaymentProviders::Stripe::Payments::AuthorizeService.call(
amount: params[:authorization].fetch(:amount_cents),
currency: params[:authorization].fetch(:amount_currency),
provider_customer: customer.provider_customer,
Expand Down
Loading