DeployFrame Docs

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

  1. Sign in to your application
  2. Navigate to "Subscription" or "Pricing" section
  3. Verify that the subscription plans are displayed correctly

Select a Paid Plan

  1. Choose any subscription plan
  2. Click "Subscribe" or "Get Started"
  3. 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:

  1. You should be redirected back to your application
  2. Check your dashboard to confirm your subscription status is active
  3. 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

  1. Go to your user dashboard
  2. Look for your credit balance display
  3. Confirm that the balance matches the credits included in your subscription plan

Verify in AWS DynamoDB (Optional)

For deeper verification:

  1. Open the AWS Console
  2. Navigate to DynamoDB
  3. Find the user credits table (likely named something like ${app_name}-${stage}-UserCredits)
  4. Look for entries matching your user ID
  5. 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

  1. In the AWS Console, navigate to Amazon EventBridge > Schedules
  2. Look for scheduled events related to your user ID
  3. 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.