To check if the payment flow is working correctly while doing PayTR Direct API integration, you can perform test transactions with the test card information provided by PayTR.
Related Guide:
Test Card Information
Field | Value | Description |
---|---|---|
Name Surname | PAYTR TEST | You can use any value you want |
Card No | 4355 0843 5508 4358 | Required card number |
Expiration Date | 12 / 30 | Any valid date you want |
CVV | 000 | Required 3-digit CVV code |
Field | Value | Description |
---|---|---|
Name Surname | PAYTR TEST | You can use any value you want |
Card No | 5406 6754 0667 5403 | Required card number |
Expiration Date | 12 / 30 | Any valid date you want |
CVV | 000 | Required 3-digit CVV code |
Field | Value | Description |
---|---|---|
Name Surname | PAYTR TEST | You can use any value you want |
Card No | 9792 0303 9444 0796 | Required card number |
Expiration Date | 12 / 30 | Any valid date you want |
CVV | 000 | Required 3-digit CVV code |
Things to Know While Testing
-
Name-Surname and Expiration Date can be changed as you wish for test transactions.
-
Card number and CVV code must be constant and fully compatible with the information provided by PayTR.
-
The payment result must be approved or rejected by verifying it through the Linked Notification URL.
-
"test_mode=1" must be sent in the test environment.
Important Notes
-
These test cards can only be used for Direct API.
-
If you are using iFrame API, test card information will be automatically filled on the payment page.
-
These card details should never be used in live mode (test_mode=0).
-
Only "OK" response should be given from your Notification URL as a result of the payment.
Test Payment Scenario Example
-
Fill out your payment form.
-
Enter the test card number and CVV as card information.
-
Select a future date like 12/30 as the expiration date.
-
Press the payment button.
-
A "success" result should come to your Notification URL via PayTR.
-
Update the order as "approved" in your database.
Conclusion
By using these test cards, you can test your PayTR Direct API integration in a healthy way and make sure that there are no problems in the payment flow.
Related Resources: