Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

focas-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

focas-client

  • 0.1.8
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Focas::Client (開發中)

focas-client 是串接財金資訊 金流 API 的 rails gem。

目前狀態為開發中,請優先使用別的 focas 相關 gem 來達到您的需求(好像沒看到別的 gem...)

NOTICE: 目前僅支援信用卡,不支援銀聯卡

測試用信用卡號

  • 請跟財金公司索取

安裝

Gemfile:

gem 'focas-client'

執行:

$ bundle install

建立 config/initializers/focas.rb

$ rails generate focas:install

設定 config/initializers/focas.rb

- config.production_mode        # 0: 開發環境 / 1: 正式站,預設為 0
- config.mer_id = ''            # 通常是統編
- config.marchant_id = ''       # 商店 ID
- config.terminal_id = ''       # 付費終端機 ID
- config.token = ''             # 驗證參數(token),須在商店設定好,請銀行人員人工放行
- config.customize = 1          # 使用客製頁面1
- config.auto_cap = 1           # 自動請款
- config.encode_type = 'UTF-8'  # 編碼一定要用 UTF-8,避免亂碼
- config.currency = 901         # 交易幣別,901 新台幣

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 03 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc