When testing the Payment Integration, Payment Providers will generally provide you with a list of cards details which can be used for testing purposes.  Please see the links below:

Stripe Documentation - Test Cards

Opayo Documentation - Test Cards