Online Payment With Stripe API Using FLASK

Ashish Pratap Singh
2 min readApr 8, 2020

--

Today I’m going to interact with you on building a successful stripe API.
I’ll show you how to build a successful Payment gateway within a few steps.
For this, we need to create a stripe account.

Test Stripe API

Diagram of a payment structure

A complete Stripe Payment steps

STRIPE: Stripe is used to covering or hiding something to remains secret between two-way communication. just like login system i.e: userid and userpwd remain secret for successive login in any site.

API: It is an Application Program Interface, in these two applications are secretly able to communicate with each other without facing any difficulties in their ways.
for this communication, we need a secret and public key that connects your stripe API, for each stripe account, the user has only one public key and more than one secret keys for the different payment account.
___________________ stripe Account:_____________________
pub_key = pk_test_yK4V6ZKrQBnSHnwq2PSf5E2E00ccf9eanC
sec_key1 = sk_test_3bzyt0SHxny4dk8gtyMKiit4003AGakhF1 for website1
sec_key2 = sk_test_3bzyt0StyMKiit4003AGakhF2Hxny4dk8s for website2
sec_key3 = sk_test_t400Ki3bzyt0SHxny4dki3AGakhF28gtya for website3

keyTerm:
After submitted the form stripe will generate a TokenID and EmailID of users, this becomes important to create customer

stripe.Customer.create:

Thanks for viewing this.
Keep supporting me for new things…

I also share this code on GitHub profile

--

--

No responses yet