Omise::PaymentLinksClient
Inherits Reference < Object
Client for Omise Payment Links+, which uses a separate API key, hostname, and authentication scheme from the core Omise API.
Constants
CHECKOUT_HOST = "linksplus.omise.co"
Constructors
new(api_key : String, api_base : String = "https://linksplus-api.omise.co", transport : Transport = HTTPTransport.new, allow_insecure_api_base : Bool = false)
SourceInstance methods
api_base
Sourcecreate_checkout_session(*, template_id : Int64, team_id : Int64, amount : Int64, name : String, currency : String | Nil = nil, features : Hash(String, String) | Nil = nil, multiple_usage : Bool | Nil = nil, custom_webhook : String | Nil = nil, return_url : String | Nil = nil) : CheckoutSession
Creates a Payment Links+ hosted payment page. The API key, team ID, and template ID are available from the Payment Links+ dashboard.
inspect(io : IO) : Nil
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>