solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::PaymentMethod#try_void
Used by Spree::Payment#cancel! Implement `try_void` on your payment method implementation to handle void attempts. In that method return a ActiveMerchant::Billing::Response object if the void succeeds. Return +false+ or +nil+ if the void is not possible anymore - because it was already processed by the bank. Solidus will refund the amount of the payment in this case.
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/payment_method.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--PaymentMethod-try_void-for-pr
# Commit to gitgit add core/app/models/spree/payment_method.rbgit commit -m "better docs for Spree::PaymentMethod#try_void"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--PaymentMethod-try_void-for-pr
hub pull-request
# Celebrate!