Gift card transactions in developer store

Hi all,

I’m trying to test an order that includes both a payment and a gift card transaction (not a discount, since gift cards behave differently and appear differently).

This is similar to this discussion, but in my case, I also attempted to place the order via Checkout, and the gateway returned the following error:

Interestingly, the order goes through if I remove the gift card.

Has anyone found a way to work around this or successfully simulate this type of transaction in a development store?

Thanks!

1 Like

Hey @Rohan-Frate,

Currently this is a limitation on development stores. Adding a gift card is considered a real transaction so that is why it goes through when the gift card is removed.

Limitations of testing orders in development stores

The following limitations apply when you test orders in a development store:

  • You can’t test orders using real transactions. Real transactions are transactions that are processed through a payment provider that isn’t in test mode, and that use real payment information such as a valid credit card number.
  • You can’t test gift cards, because they’re processed as real transactions.
  • You can’t test orders using manual payment methods. This includes cash and custom payments on Shopify POS.
  • You can’t test orders using draft orders that you create in the Shopify admin.

To test with these transaction types, you need to transfer the development store to a paid plan.

For a workaround, I would try using the orderCreate mutation and specifying a giftCard ID in the transaction input. You should then have an order with the proper data structure for further testing.

Good point. Completely missed that point in the documentation.

I will try out the orderCreate work around you’ve suggested and get back to you. Thanks!

1 Like