I am working on subscription based products. Is it possible to re-order (re-purchase) the products and then manually detect the payment of that order from the back-end?
In the spree developer guide I found this link http://ift.tt/1IL94RC which shows something like this:
payment = Spree::Order.find(:id).payments.first
payment.send(:purchase)
Could this action fulfill my requirement?
Aucun commentaire:
Enregistrer un commentaire