Skip to content
No description, website, or topics provided.
Ruby
Branch: master
Clone or download

Latest commit

darai0512 Merge pull request #16 from payjp/fix-RequestTimeout-master
timeout設定方法を明記/Update status page url
Latest commit 61391e2 Jul 22, 2019

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib update for release version: 0.0.7 Jul 22, 2019
test Add test for Charge#reauth Sep 6, 2017
.gitignore gibo Ruby > .gitignore Nov 18, 2016
.rubocop.yml Import Sep 6, 2015
.rubocop_todo.yml Import Sep 6, 2015
.travis.yml fix CI tests Nov 18, 2016
CONTRIBUTORS Add original contributors Sep 8, 2015
Gemfile revise dependencies Nov 18, 2016
History.txt Import Sep 6, 2015
LICENSE Update the copyright company name Sep 8, 2015
README.md desc read_timeout/open_timeout & fix error msg Jul 19, 2019
Rakefile Import Sep 6, 2015
payjp.gemspec suppress warning; remove Shoulda Mar 6, 2017

README.md

PAY.JP for Ruby

How to Use

require 'payjp'
Payjp.api_key = 'sk_test_c62fade9d045b54cd76d7036'
Payjp.open_timeout = 30 # optionally
Payjp.read_timeout = 90 # optionally

# ex, create charge
charge = Payjp::Charge.create(
  :amount => 3500,
  :card => 'token_id',
  :currency => 'jpy',
)
Payjp variables type required description
api_key String yes your secret key
open_timeout Integer no the second to wait for TCP connection opening (default 30)
read_timeout Integer no the second to wait from request to reading response (default 90)

For detail, See PAY.JP API Docs

Installation

gem install payjp

If you want to build the gem from source:

gem build payjp.gemspec

Requirements

  • Ruby 2.0.0 or above.
  • rest-client

Bundler

If you are installing via bundler, you should be sure to use the https rubygems source in your Gemfile, as any gems fetched over http could potentially be compromised in transit and alter the code of gems fetched securely over https:

source 'https://rubygems.org'

gem 'rails'
gem 'payjp'

Development

Test cases can be run with: bundle exec rake test

You can’t perform that action at this time.