Class: Paddle::Classic::PayLinksResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/paddle/classic/resources/pay_links.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Paddle::Classic::Resource

Instance Method Details

#generate(**params) ⇒ Object



4
5
6
7
8
# File 'lib/paddle/classic/resources/pay_links.rb', line 4

def generate(**params)
  response = post_request("2.0/product/generate_pay_link", body: params)

  PayLink.new(response.body["response"]) if response.success?
end