What are the Slack Archives?

Itโ€™s a history of our time together in the Slack Community! Thereโ€™s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you wonโ€™t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi there, when a customer pays an order with a gift card + credit card but the credit card payment f

UKK0LRJ6A
UKK0LRJ6A Posts: 14 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

Hi there,
when a customer pays an order with a gift card + credit card but the credit card payment fails (e.g. because of a missing 3d secure code or something like that), the whole order will be cancelled. But then the customer can not use the gift card again, because its already used in the cancelled order.
Is there already a solution in Spryker for that?
If not, how would you solve it?
a) Remove entry in spy_gift_card_balance_log when a full order is getting cancelled
b) Adjust \Spryker\Zed\GiftCardBalance\Persistence\GiftCardBalanceQueryContainer::queryBalanceLogEntries query and remove entries with cancelled orders from result

\Pyz\Zed\GiftCard\GiftCardDependencyProvider::getDecisionRulePlugins
\Spryker\Zed\GiftCardBalance\Communication\Plugin\BalanceCheckerApplicabilityPlugin
\Spryker\Zed\GiftCardBalance\Persistence\GiftCardBalanceQueryContainer::queryBalanceLogEntries

Comments

  • UKK0LRJ6A
    UKK0LRJ6A Posts: 14 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    @UK5EG6PBM, CC (as note)

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 ๐Ÿ› - Council (mod)
  • Jeremy Fourna
    Jeremy Fourna Lead Product Manager Sprykee Posts: 130 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    @UKK0LRJ6A yes, you will need to cancel the gift amount that is spent on the cancelled order.

  • UKK0LRJ6A
    UKK0LRJ6A Posts: 14 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    thanks for your answer. How would you cancel the gift amount? (New entry in spy_gift_card_balance_log with a negative amount?)

  • Jeremy Fourna
    Jeremy Fourna Lead Product Manager Sprykee Posts: 130 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    edited September 2021

    Since we do not have proper support there at the moment, I cannot say right now.
    Maybe @UKBSFUDEJ could you help @UKK0LRJ6A with either the negative amount or the removal of the entry?

  • Tamas Nyulas
    Tamas Nyulas Application Architect Posts: 20 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    I think both cases can be valid and it should depend wether this transaction should be visible or should be handled as it didnโ€™t happen. Iโ€™d probably chose the negative amount for better visibility.