Maaz Bashir
08/15/2022, 3:29 PMAlistair Norman
08/15/2022, 6:22 PMOleksandr Pozniak
08/16/2022, 8:21 AMJay
08/16/2022, 9:24 AMKurtis
08/16/2022, 2:00 PMPayee(s) passed in transaction does not match expected merchant id. Please ensure you are passing merchant-id=UAQHKSDFIT or <mailto:merchant-id-kasdgjgsdgsd@personal.example.com|merchant-id-kasdgjgsdgsd@personal.example.com> to the sdk url.
unfortunately.
I am:
• Using gem "solidus_paypal_braintree", github: "solidusio/solidus_paypal_braintree", branch: :master
• requiring solidus_paypal_braintree/frontend
in JS
• requiring spree/backend/solidus_paypal_braintree
in JS
• requiring spree/backend/solidus_paypal_braintree
in CSS
This is my spree.rb:
config.static_model_preferences.add(
SolidusPaypalBraintree::Gateway,
"braintree_env_credentials", {
environment: Rails.env.production? ? "production" : "sandbox",
merchant_id: ENV["BRAINTREE_MERCHANT_ID"],
public_key: ENV["BRAINTREE_PUBLIC_KEY"],
private_key: ENV["BRAINTREE_PRIVATE_KEY"],
paypal_flow: "checkout",
use_data_collector: true # Fingerprint the user's browser when using PayPal
}
)
Have tried use_data_collector
as both true and false (not sure what is best?)
I am using the API keys from Braintree Sandbox for above merchant ID, public key and private key. I have also set the PayPal sandbox credentials inside Processing Options on Braintree gateway, which is linked to the PayPal developer sandbox account.
My Rails app is v6.1.6.1, Solidus 3.1 and Solidus paypal braintree is 1.1.1. We’re using cssbundling-rails + jsbundling-rails for JS.
I feel like it’s something small but I cannot figure it out 🤦♂️ thanks!!!Alec van Niekerk
08/16/2022, 2:14 PMspree-frontend
in my application which I override to customise the frontend. I would like my header nav items to be whatever is populated in the Taxonomy table. I can see @taxonomies
is declared for the home_controller
but then as soon as I navigate to another link @taxonomies
isn't declared anymore and my header breaks. Is there a simple way to override all the frontend controllers to have access to the taxonomies? Do I just monkeypatch/decorate Spree::StoreController
?Wladjmir
08/17/2022, 2:46 PMbefore_transition to: :complete, do: :process_payments_before_complete
it’s correct? ThanksEdwin Cruz
08/17/2022, 2:51 PMKurtis
08/17/2022, 6:00 PMCan't verify CSRF token authenticity.
Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms | Allocations: 574)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
Wondering if it’s something to do with a frontend change with tokens vs new solidus front end, or if it’s a Rails 5.2 > Rails 6 issue? Any help massively appreciated. Thanks againKurtis
08/17/2022, 6:01 PMSebastian
08/18/2022, 9:02 AMsolidus_paypal_braintree
gem. I followed instructions from their github: https://github.com/solidusio/solidus_paypal_braintree and it seems to be incomplete. I can’t access any of the routes generated by gem (e.g. /solidus_paypal_braintree
) and Braintree nav item hasn’t been added to admin dashboard. My routes file have this line but it doesn’t seem to be working mount SolidusPaypalBraintree::Engine, at: '/solidus_paypal_braintree'
Wladjmir
08/19/2022, 10:13 AM:manager
role and gived OrderManagement PermissionSets,
but i discovered that to ship the order a spree_api_key is required.
i add to configuration config.roles_for_auto_api_key = ['admin', 'manager']
I did’t find this info on docs, may be at least a comment on source code of OrderManagement would be useful. ThanksGeorg Keferböck
08/19/2022, 7:09 PMJohn Pitchko
08/21/2022, 12:02 AMrequire 'solidus_paypal_braintree/factories'
to my rails_helper
but am receiving an error when I try to instantiate a factory:
NoMethodError:
undefined method 'name' in 'solidus_paypal_braintree_payment_method' factory
Did you mean? 'name { "Solidus PayPal Braintree Gateway" }'
Jay
08/21/2022, 2:55 PM@similar_products
Thank you in advanceGeorg Keferböck
08/21/2022, 3:25 PM<http://domain.com/t/[taxonomie]/[taxon_1]/[taxon_2]|domain.com/t/[taxonomie]/[taxon_1]/[taxon_2]>
..
Example: <http://mydomain.com/t/dog/food/dry|mydomain.com/t/dog/food/dry>
Product landing page: domain/products/[product_slug]?taxon_id=[id]
Example: <http://mydomain.com/products/eden-80-20-original-cuisine|mydomain.com/products/eden-80-20-original-cuisine>
My clients' previous store has super SEO and user-friendly URLs. They rank well. Ideally, I'd like to keep the same URL structure, but slight deviations are okay, as we will 301 redirect them if required!
Change 1) - When it comes to Taxonomies / Category URLs, is there a way to get rid of the "`/t/`" in the URL, which I suppose stands for "taxonomies" and is a namespaced/scoped so as not to break the routing. But if I bear that in mind and make sure taxonomies are unique and do not interfere with any other namespace, scope and URL.
For example: instead of "`mydomain.com*/t/*dog/food/dry`", we prefer "`mydomain.com/dog/food/dry`"
Change 2) - Each product has only one (1!) taxonomy attached to it. So a product can not have multiple taxonomies/taxons assigned. Therefore we would like to remain SEO friendly and have the taxons as part of the product landing page URL.
For example: instead of "`mydomain.com/products/eden-80-20-original-cuisine`", we would like the URL to be "`mydomain.com/dog/food/dry/eden-80-20-original-cuisine`"
Does anyone know if I can do that, and if so, how? Any help is appreciated! Thank you!jpd1738
08/22/2022, 8:21 PMJohn Pitchko
08/23/2022, 11:22 PMSpree::StoreCreditCategory.priority
but are there additional filters available? For example, can you configure credits to only be consumed for certain products/variants?Tom Wilson
08/25/2022, 2:45 PMSpree::Event::Subscriber
still necessary for event subscribers if use_legacy_events
is set to false? It's not clear from the documentation, and the interaction between the old and new registry isn't super clear to me from a quick inspection.Georg Keferböck
08/27/2022, 10:31 AMActiveRecord::RecordInvalid in Spree::OrdersController#populate
"Validation failed: Quantity must be greater than 0, Interval length is not a number."
I want the customer to have the choice to either subscribe or make a one-off purchase.Wladjmir
08/29/2022, 10:26 PMlib/my_store/state_machines/order.rb
module MyStore
class StateMachines
module Order
extend ActiveSupport::Concern
...
in config/application.rb
config.eager_load_paths << Rails.root.join('lib')
but i get this the error loading the class
TypeError: StateMachines is not a class
/.rvm/gems/ruby-3.1.2@egs/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/callbacks.rb48 previous definition of StateMachines was here
i’ve already lost some time…any suggestion?Edwin Cruz
08/29/2022, 10:31 PMmodule MyStore
module StateMachines
module Order
extend ActiveSupport::Concern
Edwin Cruz
08/29/2022, 10:32 PMclass
by module
in class StateMachines
Wladjmir
08/29/2022, 10:33 PMWladjmir
08/30/2022, 11:03 PMspree/order#finalize
the event order_finalized
is published on bus at the end of the method.
i’m doubtful about the way to go.Kurtis
08/31/2022, 9:11 AMKurtis
08/31/2022, 9:12 AMKurtis
08/31/2022, 9:12 AMjakemumu
08/31/2022, 1:11 PMparams.key?(:checkout)
in the update
method in the order_controller
on the frontend. It's truly strange though cause it happened in production while no code deploy happened -- and i don't see checkout added as a param in the base frontend code either. Is there possible something change in the browser? 0.o quite confused by this one..Slackbot
09/04/2022, 1:28 PM