We are creating a flea market copy site. I want to test whether I can purchase a product with a credit card, but I want to register and purchase a dummy credit card instead of the actual credit card. Is there any good way?
Looking at it, it seems that there is a library called Faker. Is this suitable?

Thank you very much for beginners, but

Implement credit card payment at Pay.jp

  • Answer # 1


    Implement credit card payment at Pay.jp

    If it is

    , test data is available on pay.jp, so let's use it.

  • Answer # 2

    It depends on what level you want to test, but if you are writing test code, I thought you could use Faker as needed.
    However, for example, if you want to release an actual service and see if it works properly in the production environment, you may want to try preparing a test environment that resembles the production and cutting credits.