Testing & Sandbox
Certification Scenarios
Required test scenarios you must complete before Cresora issues live API keys.
Complete all required scenarios in the sandbox before submitting for certification. Each scenario tests a critical part of your integration.
🔒Required
All scenarios marked Required must be completed and evidenced before Cresora issues csk_live_ keys.
Card payment scenarios
| # | Scenario | Required | Test with |
|---|---|---|---|
| C-01 | Successful card payment (automatic capture) | ✅ | PAN 4111111111111111 |
| C-02 | Successful card payment (manual capture) | ✅ | PAN 4111111111111111, capture_method: manual |
| C-03 | Card authorization + explicit capture | ✅ | After C-02, POST /v1/payments/{id}/capture |
| C-04 | Card authorization + void | ✅ | POST /v1/payments/{id}/void |
| C-05 | Soft decline handling | ✅ | PAN 4000000000000002 |
| C-06 | Hard decline handling | ✅ | PAN 4000000000000069 |
| C-07 | Full refund | ✅ | POST /v1/refunds with no amount field |
| C-08 | Partial refund | ✅ | POST /v1/refunds with amount < original |
Idempotency scenarios
| # | Scenario | Required |
|---|---|---|
| I-01 | Idempotent retry — same result on replay | ✅ |
| I-02 | Idempotency conflict — different params, same key | ✅ |
Webhook scenarios
| # | Scenario | Required |
|---|---|---|
| W-01 | Receive and verify payment.captured signature | ✅ |
| W-02 | Handle retry — return 200 on duplicate delivery | ✅ |
| W-03 | Reject stale delivery (timestamp > 5 min) | ✅ |
ACH scenarios (if using ACH)
| # | Scenario | Required |
|---|---|---|
| A-01 | Successful ACH debit | ✅ |
| A-02 | R01 return handling | ✅ |
| A-03 | R10 return handling — stop retrying | ✅ |
Error handling scenarios
| # | Scenario | Required |
|---|---|---|
| E-01 | 401 auth_failed — invalid key | ✅ |
| E-02 | 400 validation_error — malformed request | ✅ |
| E-03 | 422 processing_error — gateway decline | ✅ |
Submitting certification evidence
Document each scenario with:
- The API request sent (redact real card numbers)
- The API response received
- The webhook event received and verified
Submit your evidence via the Partner Portal under Certification → Submit Evidence, or email it to your Cresora account manager.
See Certification overview → for the full process.