BLOGS BY TOPIC▼
BLOGS BY AUTHOR▼
BLOGS BY YEAR▼
This is the blog which I wish I could have read before starting to integrate Stripe payments on our website! It explains why I'm ultimately glad we went for Stripe, but also some of the things which are harder than they need to be.
Posted by Andy Brown on 01 June 2021
You need a minimum screen resolution of about 700 pixels width to see our blogs. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.
Enabling payments using Stripe
Stripe is impressively easy to set up!
Integrating your payments
Here, for example, is how you can choose what help you want to get. First choose your platform:
Choose whether you're building a website, Android app or IPhone app.
Then choose your front-end:
Finally, you can choose your back-end platform:
Wise Owl use ASP.NET MVC for all of our external website, so that's what I chose.
You then see example code for your choices:
When you click on an instruction on the left, you see the corresponding code highlighted:
Stripe highlights the code relevant to the current instruction.
A quick techie interlude
This isn't meant to be a how-to manual, but more an aid to help you choose whether Stripe is right for you. Here's how Stripe payments work, assuming you want an easy life (ie you don't want ever to see people's card details):
|Link to Stripe.js||Your payment page should link to this Stripe page, which contains all the clever code to handle submitted card payments.|
|Create a payment intent||Use a public and private key provided with your account to create a client secret for a payment intent (so at this point you're saying you're going to buy item X for Y pounds - or dollars, or zlotys, or any other currency for that matter).|
|Present a card form||Give a user the chance to fill in their card details, using a form which is created and handled by Stripe.|
|Create the payment||Using the client secret generated earlier, commit this payment using the user's card details entered.|
To be quite honest I don't understand quite how Stripe manage to shield you from every having to see a user's card details, but the fact that we never see people's card details makes PCI compliance a great deal easier!
Testing your work
This is probably Stripe's strongest point. Here's how you view your test data:
Choose the option shown to see test transactions instead of real ones. When you create a Stripe account you are provided with test and real private and public keys to use, but the two accounts work identically (apart from the fact that test account transactions don't involve any real money!).
You can see all of your transactions in a list:
For privacy reasons I haven't listed them, but I've actually got 348 test transactions, reflecting on how long it too me to get everything right!
There are a huge array of other reports that you can run, and you can set rules to control the level of risk you're incurring. So provided you just want a basic form, I would give Stripe five stars for ease of use.