Confirming payment on Spree with Braintree
I am using Braintree for a basic Spree 3.0.0 installation.
I created a sandbox account and added the merchant ID and key in the admin panel for Braintree . I can complete the order, everything seems OK, but in the "Order" section, the payment status will have a status. Is this normal behavior? Shouldn't you change to "paid"?
Not Braintree confirming the transfer of funds, even if it's a sandbox.?
source to share
As kennyadsl suggested, it looks like you might have to automatically charge payments.
I recommend doing this in your spree initializer (in my application, it's in config / initializers / spree.rb). You have several options for this, for example, in a block:
Spree.config do |config|
config.auto_capture = true
# Other config modifications
end
or by assigning:
Spree::Config[:auto_capture] = true
If that doesn't solve your problem, let us know, and as kennyadsl suggested, check the payments page or the spree_payments table and we can recommend more solutions from there.
source to share