Giftbit Integration Test Suite

Run comprehensive tests to diagnose gift card issues

1. Full Flow Test

Tests: API key validation → Fetch brands → Create test order → Verify redemption URL

2. Retry Failed Card

Finds the most recent failed card and attempts to fulfill it

Troubleshooting Guide
If API Key Check Fails:
Check that GIFTBIT_TESTBED_API_KEY is set in environment variables
If Fetch Brands Fails:
API key may be invalid or expired. Check Giftbit dashboard
If Create Order Fails:
Check brand code, amount, and currency. Review error message details
If Redemption URL Missing:
Giftbit response structure may have changed. Check full response

© 2026 Kindred Cards. All rights reserved.