Step 1: Connecting to Stripe in Test Mode
- Enable Test Mode:
- Make sure you’re in Test Mode in Orb. This is a safe environment in which you can experiment with the full payment flow without affecting live customers.
- Connect to Stripe:
- Navigate to Settings > Connections in Orb.
- If not already connected, you should see a Connect to Stripe button.
- Click the button to begin the setup process. If you’re in Test Mode, Orb will automatically connect to Stripe’s Test Mode, allowing you to use test data (fake credit cards, test customers, etc.).
Step 2: Linking a Stripe Test Customer
- Once Stripe is connected in Test Mode, go back to your Customers page in Orb.
- Select the customer you want to use (e.g., “Test Customer 1”).
- Link the customer to Stripe: Either via the Orb UI or API, connect your test customer to a corresponding Stripe customer in Test Mode.
Step 3: Issuing an Invoice
- Navigate to the customer’s invoices page.
- Find the invoice you want to issue (e.g., the prorated invoice for the subscription’s fixed fee).
- Click Issue Invoice. This will move the invoice from an “Action Needed” state to an “Issued” state.
Step 4: Testing Auto-Collection
- If auto-collection is enabled, Orb will attempt to collect payment automatically using the customer’s saved payment method.
- In this case, if the test customer doesn’t have a default payment method in Stripe, the auto-collection attempt will fail.
- To avoid this failure in the future, ensure the customer’s payment method is collected upfront during setup.
Step 5: Manual Payment via Invoice Portal
- If auto-collection fails, or you want the customer to pay manually, use the Invoice Portal:
- The Invoice Portal is an online interface that shows customers their invoice details, including usage and fees.
- From the portal, customers can download PDFs, share the invoice, and proceed with payment.
- Pay the invoice:
- Simulate the customer’s experience by paying the invoice manually using a fake credit card provided by Stripe Test Mode.
- Example: Enter 4242 4242 4242 4242 as the credit card number, any future expiration date, a random CVV, and a zip code (e.g., 94105 for San Francisco).
- Customers can also choose to Save Payment Information so that their card or bank account details are stored as the default payment method for future auto-collection.
- Simulate the customer’s experience by paying the invoice manually using a fake credit card provided by Stripe Test Mode.
- Click Submit Payment. Stripe Test Mode will process the payment.
Step 6: Confirm Payment Status
- After submitting the payment, refresh the page to see the updated invoice status.
- The invoice should now display as Paid.
- The customer will see this status reflected in the Invoice Portal.
- If you’re in a production environment with email notifications enabled, the customer will also receive an email confirming that their invoice has been paid.
Step 7: Testing the Full Workflow
In Stripe Test Mode, you can repeat this flow with different test customers and payment methods to simulate the entire payment process.- Payments made in Test Mode will only reflect within the Stripe Test environment and won’t create any live resources or transactions.