-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Payments #51
Comments
skukx
pushed a commit
to deseretbook/solidus_avatax_certified
that referenced
this issue
Mar 31, 2017
See: boomerdigital#51 Updating the payment here will cause issues with multiple payments and is redundant. Since the payment has already been authorized and captured, there is no logical reason to update the payment amount to be other than what the payment currently is.
skukx
pushed a commit
to deseretbook/solidus_avatax_certified
that referenced
this issue
Apr 20, 2017
See: boomerdigital#51 Updating the payment here will cause issues with multiple payments and is redundant. Since the payment has already been authorized and captured, there is no logical reason to update the payment amount to be other than what the payment currently is.
@skukx Has this issue been taken care of? |
Yes I believe so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
solidus_avatax_certified/app/models/spree/payment_decorator.rb
Line 17 in 7626631
When there are multiple payments on an order (Credit Card, Gift Card). This line will mess up checkout by changing the actual amount on the payment, to the order total.
For example:
Order total is $19
1st Payment is $10 (gift card)
2nd Payment is $9 (credit card)
See https://github.com/solidusio/solidus/blob/master/core/app/models/spree/order/payments.rb#L42 for below context.
1st Payment:
process!
thenpurchase!
is calledpayment.complete!
calledpayment.amount
now $19Now 2nd payment is getting processed:
payment_total
reflectstotal
webreak
which causes checkout to failThe text was updated successfully, but these errors were encountered: