Skip to content

Commit

Permalink
Limit the length of Stripe metadata field
Browse files Browse the repository at this point in the history
Stripe imposes a `500` character limit on this field
  • Loading branch information
gylaz committed Nov 1, 2021
1 parent 60c06b1 commit 5269fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/payment_gateway_subscription.rb
Expand Up @@ -59,7 +59,7 @@ def append_repo_id_to_metadata(repo_id)
metadata["repo_id"] = nil
end

metadata["repo_ids"] = repo_ids.join(",")
metadata["repo_ids"] = repo_ids.join(",")[0, 499]
end

def remove_repo_id_from_metadata(repo_id)
Expand Down

0 comments on commit 5269fa5

Please sign in to comment.