Sha256: e217ca48f3c610484b7281dd566f73ca22f71d0f781095ebced583b628ec8c73
Contents?: true
Size: 370 Bytes
Versions: 2
Compression:
Stored size: 370 Bytes
Contents
module SubscriptionHelpers def create_subscription(user_options = {}) options = { payment_method_token: cc_token, plan_id: 'my_plan_id' }.merge(user_options) Braintree::Subscription.create(options) end def update_subscription(subscription_id, user_options = {}) Braintree::Subscription.update(subscription_id, user_options) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fake_braintree-0.8.0 | spec/support/subscription_helpers.rb |
fake_braintree-0.7.0 | spec/support/subscription_helpers.rb |