Module: Billy::Paddle
- Defined in:
- lib/billy/paddle.rb,
lib/billy/paddle/subscription.rb,
lib/billy/paddle/webhooks/signature_verifier.rb,
lib/billy/paddle/webhooks/subscription_created.rb,
lib/billy/paddle/webhooks/subscription_updated.rb,
lib/billy/paddle/webhooks/subscription_cancelled.rb,
lib/billy/paddle/webhooks/subscription_payment_refunded.rb,
lib/billy/paddle/webhooks/subscription_payment_succeeded.rb
Defined Under Namespace
Modules: Webhooks
Classes: Subscription
Class Method Summary
collapse
Class Method Details
.client ⇒ Object
15
16
17
18
19
20
21
|
# File 'lib/billy/paddle.rb', line 15
def self.client
::Paddle::Client.new(
vendor_id: Billy.paddle_vendor_id,
vendor_auth_code: Billy.paddle_vendor_auth_code,
sandbox: Billy.paddle_environment == "sandbox"
)
end
|
.owner_from_passthrough(passthrough) ⇒ Object
23
24
25
26
27
|
# File 'lib/billy/paddle.rb', line 23
def self.owner_from_passthrough(passthrough)
GlobalID::Locator.locate_signed passthrough
rescue JSON::ParserError
nil
end
|