SpreeGmoPg

spree_gmo_pg is a Spree extension that adds credit card payments through GMO Payment Gateway (GMO-PG), one of the largest payment providers in Japan.

Card details are tokenized in the browser by GMO's own JavaScript SDK, so raw card numbers never reach your application.

Features

  • Credit card payment via GMO-PG
  • Tokenization in the browser using the GMO-PG Token SDK
  • 3-D Secure 2.0, including the redirect-and-return flow
  • Optional member management (saved cards) using GMO-PG site credentials
  • Automatic capture for digital-only orders, via spree_auto_capture_digital
  • Test mode that points at GMO's staging endpoints

Installation

Add this line to your application's Gemfile:

gem 'spree_gmo_pg'

Then run:

bundle install
bin/rails g spree_gmo_pg:install

Configuration

Add the payment method from the Spree admin (Settings → Payment Methods → New, provider Spree::PaymentMethod::GmoPg) and fill in the credentials issued by GMO-PG:

Setting Meaning
Shop ID / Shop Password Identifies your shop. Required
Site ID / Site Password Only needed if you want to store cards for members
Test mode On by default. Uses GMO's staging endpoints and SDK

Leave test mode on until GMO has approved your production account.

Requirements

  • Spree 5.3.6
  • active_merchant_gmo_pg — the ActiveMerchant gateway this extension builds on
  • A GMO-PG merchant account

Licence

AGPL-3.0-or-later. See LICENSE.