Home>
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
-
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.
Related questions
- ruby - passing variables using render partial
- ruby - #i want to see a list of posts for that user on the user details page
- ruby - implementation of friendly forwarding
- ruby - i installed carrierwave with rails, but i can't see the image
- ruby - about rails controller new action
- ruby - rails page does not open
- [ruby] i'm having trouble with nomethoderror
- ruby - [search function] acquisition of products associated with users
- ruby - even if each statement is used, the contents of the db cannot be displayed in order and an error occurs
- ruby - if i include the'omniauth-facebook'gem, do i need to install the'omniauth' gem as well?
, test data is available on pay.jp, so let's use it.