Skip to content

rtablada/Stripe-Form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Stripe form builder for Laravel

When integrating Stripe in your blade views wouldn't it be awesome to just say {{ StripeForm::build(25) }} and have a full Stripe.js enabled form embedded with a charge of $25?

Well, that's what we are setting out to accomplish in this new package.

Progress

Getting to this awesome syntax is gonna take some coding, but we've already started making things easier for those of you who want to integrate a Stripe Connect button in your application!

Installation

Include this package in your composer.json rtablada/stripe-forms.

Then pull in and update your config file: php artisan config:publish rtablada/stripe-forms.

In your App config add this to your Service Providers: 'Rtablada\StripeForms\StripeFormsServiceProvider',

In your App config add this to your Facades: 'ConnectButton' => 'Rtablada\StripeForms\StripeConnectButtonFacade',

Stripe Connect Button

Instead of worrying about the ugly syntax of creating an anchor tag with a long query string to build your Stripe Connect buttons, you can just use this builder.

ConnectButton::button()

Or for rapid prototyping, you can use ConnectButton::buttonWithStyle() to dump the required style in-line

Alternate configuration

In combination with some of the other Stripe packages I am working with, I have made it so that a stripe.php config file can be shared with the other packages. Currently all that is needed is a 'clientId' property in the array.

About

Laravel Package for creating Stripe Forms and Connect HTML Assets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages