It's getting hotter. : flag_jp: I can't lose because of the influence of Corona. : pouting_cat: Let's clean the air conditioner soon! !!
The story is off. Yes, this time about payjp. Don't rush everyone. Tabs open too much! There is a computer, so wait a minute. Let's go! !! !! : older_woman_tone5:
Some people may be new to it, so to explain it briefly, It's very useful for implementing credit card functionality. Why is that?
When you think about the flea market apps, the table is
・ User table ・ Product table ・ Payment table
The above is required for purchase. As anyone who has used Mercari knows, you can pay by credit card when purchasing a product. And since the credit card that I used once is saved, I can use it without registering the next one. However, when I think about making this, I think like this.
That's right. It's dangerous in terms of security. It is payjp that solves such problems. : fist:
Suddenly VS code is too impatient. (If you can't stand it, please turn back.): Runner_tone5:
First of all, there is a payjp website, so access it !!
When you access it, it looks like this.
Then, let's first register as a member from the login above. (It's free so it's safe ZE!)
After logging in, it looks like this. (Must be in test mode !!)
I didn't put the payjp gem.
Yes, payjp has a gem, so let's Gemfile !!
This is the end of preparation. See you next time in the credit card registration section. (I will write an article tomorrow.): Point_up: