Skip to content

Commit

Permalink
Merge pull request #97 from pay-theory/PTP-1584-Update-Docs-with-Card…
Browse files Browse the repository at this point in the history
…-Types-for-Testing

fix: update to the testing page
  • Loading branch information
Srinithya-Indla authored Oct 25, 2024
2 parents a6ccf02 + c8ff430 commit 1c8e7c9
Showing 1 changed file with 26 additions and 14 deletions.
40 changes: 26 additions & 14 deletions docs/main/testing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,37 @@ In order to test a payment method you need be set up to accept online payments.
When testing you will be using an SDK import and API Key that contains either paytheorylab or paytheorystudy.

### Card Brands
|Card Brand |Testing Number |
------------|----------------------|
|Discover |6542 1548 4662 3459 |
|Mastercard |5454 5454 5454 5454 |
|Amex |3434 343434 34343 |
|Visa |4111 1111 1111 1111 |
| Card Brand | Testing Number |
|------------|---------------------|
| Discover | 6542 1548 4662 3459 |
| Mastercard | 5454 5454 5454 5454 |
| Amex | 3434 343434 34343 |
| Visa | 4393 4200 0000 2680 |

### Card Types
| Card Type | Testing Number |
|-----------------|---------------------|
| Business Credit | 4005 5192 0000 0004 |
| Business Debit | 4591 9000 1010 1010 |
| Credit Card | 4012 0000 3333 0026 |
| Debit Card | 4867 3200 0000 1111 |
| Prepaid Card | 5445 4351 1311 2111 |


### Card Failures
To trigger certain failures process a payment using the following amounts. These failures will not work when using `service_fee` fee mode.

***These amounts are in cents.***


|Amount |Error Type |
------------|---------------------------------------|
|102 |GENERIC_DECLINE |
|193 |INSUFFICIENT_FUNDS |
|194 |INVALID_ACCOUNT_NUMBER |
|889986 |ADDRESS_VERIFICATION_FAILED_RISK_RULES |
|889987 |CVV_FAILED_RISK_RULES |
|888888 |DISPUTE
| Amount | Error Type |
|--------|----------------------------------------|
| 102 | GENERIC_DECLINE |
| 193 | INSUFFICIENT_FUNDS |
| 194 | INVALID_ACCOUNT_NUMBER |
| 889986 | ADDRESS_VERIFICATION_FAILED_RISK_RULES |
| 889987 | CVV_FAILED_RISK_RULES |
| 888888 | DISPUTE |

:::note Triggering a dispute
If you want to trigger a dispute in sandbox, run a transaction for `888888`. You will get a success back and a dispute will be generated as well from this transaction.
Expand Down

0 comments on commit 1c8e7c9

Please sign in to comment.