Skip to content

Commit

Permalink
Parameterize braintree statuses with underscore to convert spaces pro…
Browse files Browse the repository at this point in the history
…perly
  • Loading branch information
excid3 committed Nov 27, 2023
1 parent cc4a286 commit 48a4363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pay/braintree/subscription.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def self.sync(subscription_id, object: nil, name: nil, try: 0, retries: 1)
current_period_start: object.billing_period_start_date,
payment_method_id: object.payment_method_token,
processor_plan: object.plan_id,
status: object.status.underscore,
status: object.status.parameterize(separator: "_"),
trial_ends_at: (object.created_at + object.trial_duration.send(object.trial_duration_unit) if object.trial_period)
}

Expand Down

0 comments on commit 48a4363

Please sign in to comment.