Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
547 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Our experience of switching to Stripe payments Part three of a five-part series of blogs |
---|
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.
|
Stripe is impressively easy to set up!
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:
Be warned that Stripe is very big on React (which as I understand it is a JavaScript add-in library), although I just use JQuery and HTML.
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:
You can click to show the server code, HTML file, JavaScript or CSS styles.
When you click on an instruction on the left, you see the corresponding code highlighted:
Stripe highlights the code relevant to the current instruction.
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):
Step | 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. |
You'll need to understand how to work with AJAX calls in JavaScript - my weak point - but it's all very well explained.
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!
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.
But ...
Parts of this blog |
---|
|
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.