SpreeNpAtobarai
spree_np_atobarai is a Spree extension that integrates the NP Atobarai payment service into your Spree store. It provides functionalities for managing orders using this payment method, exporting order data in CSV format, and selecting invoice sending methods.
Features
-
New Payment Method Type
- Adds
Spree::PaymentMethod::NpAtobarai, allowing customers to pay using the NP Atobarai service.
- Adds
-
Order Management Screen
- Provides an admin interface for managing orders that use the NP Atobarai payment method.
-
CSV Export for NP Atobarai
- Allows exporting NP orders in CSV format for upload to the NP Atobarai service.
-
Invoice Sending Methods Selection
- Allows selecting
invoice_sending_methodswhen using theNP Atobaraipayment method.
- Allows selecting
Installation
- Add spree_np_atobarai to your Gemfile:
gem 'spree_np_atobarai'
- Install the gem using Bundler:
bundle install
- Copy & run migrations:
bundle exec rails g spree_np_atobarai:install
Usage
Creating the Payment Method
After installing the extension, create a new NP Atobarai payment method using the Rails console:
Spree::PaymentMethod::NpAtobarai.find_or_create_by(
name: "Np Atobarai 1",
description: "Np Atobarai payment method",
active: true,
display_on: "both",
auto_capture: true
)
This will register the NP Atobarai payment method in your Spree store and make it available for use.
Managing NP Orders
Once installed, an NP Order management screen will be available in the Spree admin panel. Here, you can view and manage all orders that use the NP Atobarai payment method.
Exporting NP Orders to CSV
To generate a CSV file for NP orders, navigate to the NP Order section in the admin panel and click the Export CSV button.
License
This extension is available as open source under the terms of either: