Skip to content

yield-tech/sdk-ruby

Repository files navigation

Yield SDK for Ruby Gem Version

The official Yield SDK for Ruby.

Documentation

Installation

gem install yield-sdk

Usage

require "yield/sdk"

# For security, don't save the actual key in your code or repo
client = Yield::SDK::Client.new(ENV.fetch("YIELD_API_KEY"))

# Fetch an existing order
order = client.order.fetch("ord_...")
p order.customer.registered_name

# Or create a new one
new_order = client.order.create({
  customer_id: "org_...",
  total_amount: "PHP 1234.50",
  note: "Test order from the Ruby SDK!"
})

For more details, check out our API reference.

About

The official Yield SDK for Ruby

Resources

License

Stars

Watchers

Forks

Packages

No packages published