Testing Giftcard Webhooks

Hello, we have subscribed (in Sandbox) to the gift card activity updated webhook event. But it doesn’t seem to be firing when we think it should. If i use a GC in the dashboard to make a purchase, no event is seen. If we directly create a “redeem” event, still no webhook activity. is this a sandbox limitation or are we doing something wrong?

Gift card activity webhook events won’t fire for payments made with the a gift card. However I believe a redeem event should fire. Whats your application ID? :slightly_smiling_face:

sandbox-sq0idb-L1owysGehPFC3rzem59Hqw

I guess we don’t understand the difference between a payment and a redeem. Sounds like the same thing…

I took a look at the Webhook Logs and it looks like the events are being triggered however the server is responding with a 5xx. You’ll need to make sure that your responding with a 2xx within 10 seconds. :slightly_smiling_face:

The only GC activit events we are being sent is “IMPORT”. We need to test REDEEM…

"import_activity_details": {
          "amount_money": {
            "amount": 1500,
            "currency": "USD"
          }
        },
        "location_id": "81FN9BNFZTKS4",
        "type": "IMPORT"

What’s the payment_id of a gift card payment that didn’t trigger an event? :slightly_smiling_face:

“merchant_id”: “MLEF3R0KRGQEY”,
“type”: “payment.created”,
“event_id”: “48198e8b-aaa0-3d02-bb48-89ff96b93d4b”,
“created_at”: “2023-04-05T16:33:34.636Z”,
“data”: {
“type”: “payment”,
“id”: “nVrRGgzVYu2rnvdp6o984yEivaB”,
“object”: {
“payment”: {
“amount_money”: {
“amount”: 1000,
“currency”: “USD”
},
“application_details”: {
“application_id”: “sandbox-sq0idb-iKaL0GY_L13b75J0K2qgsw”,
“square_product”: “INVOICES”
},
“approved_money”: {
“amount”: 1000,
“currency”: “USD”
},
“card_details”: {
“auth_result_code”: “0”,
“card”: {
“bin”: “778332”,
“card_brand”: “SQUARE_GIFT_CARD”,
“card_type”: “DEBIT”,
“exp_month”: 4,
“exp_year”: 2024,
“fingerprint”: “sq-1-LFmI2q_DIWk5DfZTpAfkOQ6F9vNcLNlmTa9FJJe24CkZVPwnArlFzbvbERQ3RZrgwg”,
“last_4”: “0000”,
“prepaid_type”: “PREPAID”
},
“card_payment_timeline”: {
“authorized_at”: “2023-04-05T16:33:34.630Z”
},
“entry_method”: “KEYED”,
“status”: “AUTHORIZED”
},
“created_at”: “2023-04-05T16:33:34.593Z”,
“employee_id”: “TMnz6qLY8P_KFSsP”,
“id”: “nVrRGgzVYu2rnvdp6o984yEivaB”,
“location_id”: “LM0QF0N78BGH4”,
“order_id”: “w1TmExzmD5uHZJPQMC7O7QteV”,
“receipt_number”: “nVrR”,
“source_type”: “CARD”,
“status”: “APPROVED”,
“team_member_id”: “TMnz6qLY8P_KFSsP”,
“total_money”: {
“amount”: 1000,
“currency”: “USD”
},
“updated_at”: “2023-04-05T16:33:34.630Z”,
“version”: 1
}
}
}
}

Okay, I was able to replicate this when trying to pay for an invoice using a gift card. I’ve escalated this to the team. :slightly_smiling_face:

Hi, do you have any new information about this yet?

-David

Hi, we’re still waiting on an update for this… @Bryan-Square ?

According to the team webhooks from payments with the gift card test value won’t trigger webhooks in sandbox. They will in production however the sandbox experience won’t at this time. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. :slightly_smiling_face: