Has Anyone Integrated Stripe Payments...

User 2450707 Photo


Registered User
94 posts

Has Anyone Integrated Stripe Payments with Web Form Builder?

I have managed to create Stripe payment tokens.
I am wondering if anyone has managed to convert these into payments in WFB.
Any info shared would be appreciated.

Thanks!
User 2450707 Photo


Registered User
94 posts

Hi Again!
Seems there might not be much interest here in implementing Stripe payments in a form.
The reason I like it is that the credit card details are tokenised and never stored anywhere.
The token is passed from the form to Stripe with PHP and there are few security issues and no need for PCI compliance etc. Stripe looks after all of that.

So, meanwhile, I have implemented Stripe on a form.
If you wish to see it, the form is in test mode for the next few days.

If you would like to try it, please use the following VISA card:
4242 4242 4242 4242
Exp: 12/18 (or any valid date in the future)
CVC: 123 (or choose your own)
This is a test card and you can spend as much as you like, without any money leaving your pocket!

If you test the form, please use your email address so you may see the confirmation email.
It was prepared with RED.

If you notice anything that may be improved, please let me know.
Happy spending!

Daniel
User 2450707 Photo


Registered User
94 posts

Ooops I forgot the web address of the form! :rolleyes:

So this is where you may try it out:

http://www.kodalyireland.com/Courses/Te … orm14.html
User 38401 Photo


Senior Advisor
10,951 posts

Hiya Daniel,

All of what you are after there is how it works with PayPal which is already integrated. Customers can use their accounts if they have one on PayPal, but it is not required and no payment information is saved by either the shop or PayPal if a customer chooses to just use a credit card or debit card. There is also no need for PCI compliance on your site if you use PayPal.

Not everyone likes PayPal of course, but since it is already integrated it's the easier solution for most.

What might be helpful though would be if you were to tell people what they would need to do to implement Stripes if they wanted to use it. :)

Good luck whichever way you decide to go with it all!
User 2450707 Photo


Registered User
94 posts

Hi Jo,

PayPal has a bad rep for withholding funds, especially in my part of the world.
If you are a voluntary society with perhaps one or two events a year, PayPal seems not to like the spike in activity and often blocks transfers for months for an 'investigation'. Some music festivals have been stung like that. Who wants to be in a position of collecting business in advance yet not having access to the funds to pay for the costs of the event in advance?

That is my main concern about PayPal.

So Stripe (not Stripes!) was a better option for this client, on this occasion.

Regarding how to do it, I merely followed the Stripe documentation which is excellent, personalised, but technical for a casual user. Being able to write your own JavaScript and PHP functions helps.

There are three steps.
1. Install the Stripe API Lib to your server (no need to use Composer* to do this type of implementation)
However, directory paths in config files may need to be edited.
2. Add the Stripe Checkout to your form. (JavaScript)
Adding some code to catch the data entered in your form to be inserted into the Checkout is possible (Amt payable, email address) and then catch the Token.id and append it to a hidden field on your form (requires one function to be hand-coded).
3. Add the PHP code to your forms 'Post' file for processing.

(*Composer is an installer for PHP libraries such as APIs. If you wish to do coding involving testing, chargebacks and other bespoke card-related coding, follow the Composer installation route. Otherwise, just copy the library folder to your server. In this simple implementation using the Checkout, I only required to use the Stripe bindings to allow CC payments.)

I added the Stripe PHP coding to the "FormTitle.php" file which merely passes a token to Stripe when the form Posts.
Stripe handles the payments. Stripe provides a backend which reports your payments history and progress for each user such as a) new customer created, b) new card added by customer, c) token created and d) new charge made.

That's All Folks!
Daniel

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.