You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Me again sorry. Still very unfamiliar with this code so could be very far off the mark with this.
What I am seeing
When attempting to capture payment during 'checkout' state I get Could not find gift card for auth code: 23-GC-20161121031428191325 for action: capture
I am also seeing the payment as not captured when setting Auto capture to true under payment settings and doing a partial payment. This may be by design as auto_capture may assume a full payment and therefore run after the payment step completes?
So steps to recreate the first issue should be
Spree 3.1
Create a new gift card in admin
Add item to cart, proceed through checkout
Apply Gift Card using the payment step
Attempt to 'capture' payment in admin before proceeding
Notes:
The error is generated by app/models/spree/payment_method/gift_card.rb#91
The error appears to be happening because it's attempting to find (capture) a GiftCardTransaction with the authorization code that doesn't exist (the code does exist on the GiftCard though)
The transaction is not generated when adding the gift_card because Spree::Order::GiftCard.add_gift_card_payments only generates a payment (with an auth code attached)
The reason I am trying to capture/auto capture is in order to have a correct remaining total (outstanding_total) to send to an offsite payment method when using a gift card for a partial sale.
The text was updated successfully, but these errors were encountered:
Me again sorry. Still very unfamiliar with this code so could be very far off the mark with this.
What I am seeing
Could not find gift card for auth code: 23-GC-20161121031428191325 for action: capture
Auto capture
totrue
under payment settings and doing a partial payment. This may be by design as auto_capture may assume a full payment and therefore run after the payment step completes?So steps to recreate the first issue should be
Notes:
app/models/spree/payment_method/gift_card.rb#91
GiftCardTransaction
with the authorization code that doesn't exist (the code does exist on theGiftCard
though)Spree::Order::GiftCard.add_gift_card_payments
only generates a payment (with an auth code attached)The reason I am trying to capture/auto capture is in order to have a correct remaining total (outstanding_total) to send to an offsite payment method when using a gift card for a partial sale.
The text was updated successfully, but these errors were encountered: