Testing
Test your Pybara integration before accepting real payments.
Enable Test Mode
Section titled “Enable Test Mode”- Navigate to WooCommerce → Settings → Payments → Pybara
- Enable Test Mode
- Save changes
Test mode uses the Internet Computer testnet, so no real funds are used.
Test Payment Flow
Section titled “Test Payment Flow”- Add a product to your cart
- Proceed to checkout
- Select “Pybara” as payment method
- Connect a test wallet
- Complete the payment
Test Wallets
Section titled “Test Wallets”For testing, you can use:
- Oisy Wallet on testnet
- Plug Wallet on testnet
- Create a test Internet Identity
Common Test Scenarios
Section titled “Common Test Scenarios”Successful Payment
Section titled “Successful Payment”- Complete checkout with sufficient balance
- Verify order status changes to “Processing”
- Check order notes for transaction details
Insufficient Balance
Section titled “Insufficient Balance”- Attempt payment with insufficient funds
- Verify error message is shown
- Order should remain “Pending payment”
Payment Timeout
Section titled “Payment Timeout”- Start checkout but don’t complete payment
- Wait for timeout period (default: 15 minutes)
- Order should remain “Pending payment”
Cancelled Payment
Section titled “Cancelled Payment”- Start checkout
- Close wallet without completing
- Order should remain “Pending payment”
Troubleshooting
Section titled “Troubleshooting”Payment Not Completing
Section titled “Payment Not Completing”- Check browser console for errors
- Verify merchant principal is correct
- Ensure test mode is enabled
- Check wallet has sufficient test tokens
Wallet Not Connecting
Section titled “Wallet Not Connecting”- Clear browser cache
- Try different wallet
- Check browser compatibility
- Disable conflicting extensions
Going Live
Section titled “Going Live”Once testing is complete:
- Disable Test Mode
- Verify merchant principal is correct
- Test one small real payment
- Monitor first few orders closely