Как установить источник оплаты в Spree для новых настроек оплаты? - PullRequest
1 голос
/ 08 января 2020

Я пытаюсь настроить новую настройку платежей (EFT) в Rails 5.2 и приложении Spree 3.7.4. Вот как выглядит мой раздел администрирования для настроек оплаты: введите описание изображения здесь

1 : Мой локальный администратор admin / payment_methods / https://i.stack.imgur.com/03QSS.png

И я также настроил config / initializers / spree.rb

# frozen_string_literal: true

# Configure Spree Preferences
#
# Note: Initializing preferences available within the Admin will overwrite any changes that were made
#         through the user interface when you restart.
#       If you would like users to be able to update a setting with the Admin it should NOT be set here.
#
# Note: If a preference is set here it will be stored within the cache & database upon initialization.
#       Just removing an entry from this initializer will not make the preference value go away.
#       Instead you must either set a new value or remove entry, clear cache, and remove database entry.
#
# In order to initialize a setting do:
# config.setting_name = 'new value'
Spree.config do |config|
  config.tax_using_ship_address = false
  config.require_master_price = false
end

# Configure Spree Dependencies
#
# Note: If a dependency is set here it will NOT be stored within the cache & database upon initialization.
#       Just removing an entry from this initializer will make the dependency value go away.
#
Spree.dependencies do |dependencies|
  # Example:
  # Uncomment to change the default Service handling adding Items to Cart
  # dependencies.cart_add_item_service = 'MyNewAwesomeService'
end

Spree.user_class = 'Spree::User'

Rails.application.config.spree.payment_methods << Spree::Gateway::GooglePay
Rails.application.config.spree.payment_methods << Spree::Gateway::Eft

Когда я пытаюсь оформить заказ через EFT на моем локальном компьютере, я получаю платежи "{:". source "=> [" не может быть пустым "]}" .. смотрите скриншот payment.source locahost error

Как установить источник оплаты в новых платежных шлюзах Spree?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...