dalerka / paddlex

An Elixir wrapper for the paddle.com API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paddlex

An Elixir wrapper for the paddle.com API, inspired by paddle_pay and stripity_stripe

Installation

If available in Hex, the package can be installed by adding paddle to your list of dependencies in mix.exs:

def deps do
  [
    {:paddlex, "~> 0.1.0"}
  ]
end

Configuration

Configure lib the credentials obtained from the Paddle Dashboard

# config/dev.exs
config :paddlex,
  environment: :sandbox
  vendor_id: "YOUR SANBOX VENDOR ID (as number)"
  vendor_auth_code: 'YOUR SANDBOX VENDOR AUTH CODE'
# config/prod.exs
config :paddlex,
  environment: :production
  vendor_id: "YOUR PRODUCTION VENDOR ID (as number)"
  vendor_auth_code: 'YOUR PRODUCTION VENDOR AUTH CODE'

About

An Elixir wrapper for the paddle.com API


Languages

Language:Elixir 100.0%