Add status column to Spree::Refund #4862
abbyhudson13
started this conversation in
New Features or Ideas
Replies: 1 comment 1 reply
-
We are not up to current version of core and have modifications to the states but one comment here I would have would be to follow similar state logic found in other areas and their naming conventions. So table spree_refunds would get spree_refunds.state of which naming could be the following
I think one of the biggest hurdles for anyone new including myself was figuring out what was what and the slight variants at times in naming conventions. We have build external apps which work with solidus and I actually follow similar naming conventions and logic outside so that it makes more sense when working with our internal data |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As discussed in the slack channel,
charge.refunded
events from buy now pay later payment methods eg. Klarna come through from Stripe with apending
status. Currently we only create a refund in Solidus when the status issucceeded
. The only solution would be to wait for therefund.updated
event to come through from Stripe when the refund has succeeded and create the refund in Solidus following this event. However, this is confusing because there is no indication within Solidus that the refund request has been sent until this event comes through.The suggestion would be to create a
status
column on the Spree::Refund (as @AlistairNorman has said is in an unreleased extension already), so the refund would be created with apending
status until the succeeded status comes back from Stripe, at which point the status of the refund also changes tosucceeded
.Beta Was this translation helpful? Give feedback.
All reactions