solidus

https://github.com/solidusio/solidus

Ruby

🛒 Solidus, the open-source eCommerce framework for industry trailblazers.

Spree::Payment#set_unique_identifier

Necessary because some payment gateways will refuse payments with
duplicate IDs. We *were* using the Order number, but that's set once and
is unchanging. What we need is a unique identifier on a per-payment basis,
and this is it. Related to https://github.com/spree/spree/issues/1998.
See https://github.com/spree/spree/issues/1998#issuecomment-12869105

Source | Google | Stack overflow

Edit

git clone [email protected]:solidusio/solidus.git

cd solidus

open core/app/models/spree/payment.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--Payment-set_unique_identifier-for-pr


# Commit to git

git add core/app/models/spree/payment.rbgit commit -m "better docs for Spree::Payment#set_unique_identifier"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Spree--Payment-set_unique_identifier-for-pr

hub pull-request


# Celebrate!