Skip to main content
Test your AcountPay SDK integration thoroughly before going live. This guide covers sandbox testing with sandbox bank credentials and production validation steps.

Quick Start

  1. Sandbox Testing: Use test credentials to simulate payments
  2. Production Switch: Update credentials and URLs for live environment
  3. Test Scenarios: Run comprehensive validation tests

Sandbox Testing

Use our sandbox environment to test payment flows without real money.

Setup

  • Get your sandbox client ID from the Developers page in your merchant dashboard
  • Configure SDK for sandbox mode
  • Use test bank credentials below

Test Bank Credentials

BankTypeCurrencyCredentials
UK NatWest
ob-natwest
RedirectGBPUsername: 123456789012
Password: displayed on screen
Spain BBVA
ngp-inal
RedirectEURIBAN: ES2501822200160201933547
Username: user1
Password: 1234
Auth Code: 123456
German KD-Bank
sk-fidu-genoded1dkd
EmbeddedEURPSU ID: VRK1234567890ALL
Password: password
SCA: Mobile TAN
PIN: 123456
Success IBAN: DE39499999600000005111
Decline IBAN: DE98499999600000005116
German Deutsche Kreditbank
ngp-byla
EmbeddedEURPSU ID: abc
Password: 123
SCA: 962: SmartTAN plus HHD 1.4
PIN: 123456
Polish Alior Bank
(AIS)
Account InfoPLNPSU ID: 22058375
Password: 12345678

Testing Steps

  1. Initialize SDK with sandbox client ID
  2. Select a test bank from the table above
  3. Complete payment flow using provided credentials
  4. Verify webhook notifications
  5. Check transaction in merchant dashboard

Production Testing

Switch to live environment after successful sandbox testing.

API URLs

EnvironmentURL
Sandboxhttps://acount-apis-staging-a8cdb2402163.herokuapp.com/v1
Productionhttps://acount-apis-7886a9e16dc3.herokuapp.com/v1

Configuration Changes

  • API URL: Switch from sandbox to production URL (see table above)
  • Client ID: Replace sandbox ID with production ID from dashboard
  • Environment: Change environment from “sandbox” to “production”

Pre-Launch Checklist

  • Production API endpoints configured
  • Production client ID active
  • Webhook URLs accessible
  • Error handling implemented
  • Success/failure flows tested

Test Scenarios

✅ Success Cases

ScenarioTestExpected Result
Single PaymentProcess payment with one bankPayment succeeds, webhook received
Multi-BankTest different banks/currenciesAll payments process correctly
Amount VariationsTest min/max/decimal amountsAll amounts handled properly
Webhook DeliveryMonitor payment eventsAll webhooks received and processed

❌ Error Cases

ScenarioTestExpected Result
User CancelCancel during bank authPayment fails gracefully
Network IssuesSimulate connection lossProper error handling
Wrong CredentialsUse invalid bank loginClear error messages
Session ExpiryWait for timeoutSession handles expiration

⚠️ Edge Cases

ScenarioTestExpected Result
Low BalancePayment exceeds account fundsDeclined with clear message
Bank OfflineTest during maintenanceAppropriate downtime handling
Duplicate PaymentMultiple attempts same orderPrevents duplicate charges

🔧 Integration Checks

ScenarioTestExpected Result
SDK SetupVerify initializationNo errors, proper config
Redirect URLsTest success/failure callbacksCorrect page redirects
Data StorageCheck payment persistenceAll data saved accurately

Best Practices

Environment Setup

  • Use separate test accounts for sandbox/production
  • Test with realistic payment amounts
  • Verify across multiple browsers/devices
  • Load test concurrent payment capacity

Monitoring

  • Monitor SDK logs for errors
  • Test webhooks with tools like ngrok
  • Regularly check dashboard for issues
  • Document refund/dispute processes

Troubleshooting

Common Sandbox Issues

  • Wrong Credentials: Double-check table above
  • Environment Config: Ensure sandbox mode enabled
  • Webhook Problems: Verify endpoint accessibility

Common Production Issues

  • API Connection: Confirm production URLs
  • Client ID: Verify production credentials
  • SSL Setup: Check HTTPS configuration

Support

Need Help?
  • 📧 Email: [email protected]
  • 🏠 Dashboard: Check Developers section
  • 📚 Docs: SDK reference for API details
Ready to Go Live? Complete all test scenarios and contact support for final approval.