paytrail / api-documentation

Paytrail Payment API documentation
MIT License
6 stars 11 forks source link

Documentation should also give examples for invalid merchant id and secret key #38

Closed mikkorantalainen closed 2 years ago

mikkorantalainen commented 2 years ago

The URL https://docs.paytrail.com/#/?id=test-credentials list test credentials to be used for development. Currently the test credentials are as follows:

Merchant ID: 375917 Secret key: SAIPPUAKAUPPIAS

The documentation should define a way to test for invalid merchant id and/or secret key. For example, is it okay to use random data to test the API behavior if merchant id or secret key are invalid like this?

Merchant ID: 123456 Secret key: SAIPPUAKAUPPIAS -> Invalid merchant id?

Merchant ID: 375917 Secret key: TEST -> invalid secret?

Merchant ID: 123456 Secret key: TEST -> invalid merchant id?

Should developers use some specific merchant id for this kind of testing to avoid spamming the Paytrail API?

jfrojd-paytrail commented 2 years ago

Thank you for a great suggestion @mikkorantalainen, will look into adding this to the documentation. For example 123456 and TEST are valid ways of testing this.