Method: Pay::Paddle::Billable#processor_subscription
- Defined in:
- lib/pay/paddle/billable.rb
#processor_subscription(subscription_id, options = {}) ⇒ Object
61 62 63 64 65 66 |
# File 'lib/pay/paddle/billable.rb', line 61 def processor_subscription(subscription_id, = {}) hash = PaddlePay::Subscription::User.list({subscription_id: subscription_id}, ).try(:first) OpenStruct.new(hash) rescue ::PaddlePay::PaddlePayError => e raise Pay::Paddle::Error, e end |