Subscription Testing
Test the subscription and payment process with Stripe test cards
Subscription Testing
This guide focuses on verifying that your subscription and payment processing functionality is working correctly. Since you've configured Stripe in test mode, you can use test cards to verify the entire subscription flow without making actual charges.
Testing Subscription Purchase
Access Subscription Page
- Sign in to your application
- Navigate to "Subscription" or "Pricing" section
- Verify that the subscription plans are displayed correctly
Select a Paid Plan
- Choose any subscription plan
- Click "Subscribe" or "Get Started"
- You should be redirected to the checkout page
Complete Checkout with Test Card
Use these Stripe test card details:
- Card Number:
4242 4242 4242 4242
- Expiration: Any future date (e.g., 12/29)
- CVC: Any 3 digits (e.g., 123)
- ZIP: Any 5 digits (e.g., 12345)
This test card will always succeed and is perfect for testing successful payment flows.
Verify Successful Subscription
After payment processing:
- You should be redirected back to your application
- Check your dashboard to confirm your subscription status is active
- Verify that credits have been added to your account according to the plan
Verify Credit Allocation
Credits should be automatically allocated to your account after subscribing. Let's verify this:
Check Credit Balance
- Go to your user dashboard
- Look for your credit balance display
- Confirm that the balance matches the credits included in your subscription plan
Verify in AWS DynamoDB (Optional)
For deeper verification:
- Open the AWS Console
- Navigate to DynamoDB
- Find the user credits table (likely named something like
${app_name}-${stage}-UserCredits
) - Look for entries matching your user ID
- Verify credit balance is correctly stored
Verify Scheduled Credit Distribution (Annual Plans Only)
If you subscribed to an annual plan, you can verify that scheduled credit distributions are set up:
Check EventBridge Scheduler
- In the AWS Console, navigate to Amazon EventBridge > Schedules
- Look for scheduled events related to your user ID
- Verify that they are scheduled to run at appropriate intervals
For annual plans, credits are typically distributed on a monthly basis via scheduled events.
Next Steps
Now that you've verified subscription and payment functionality is working correctly, proceed to AI Services Testing to verify your platform's core functionality.