Download the PHP package marqant-lab/marqant-pay-stripe without Composer

On this page you can find all versions of the php package marqant-lab/marqant-pay-stripe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package marqant-pay-stripe

Marqant Pay Stripe Gateway

This package makes the stripe payment provider available for the marqant/marqant-pay package.

Instalation

You can just require this package through composer as follows.

Then you have to add the service infomration to the services.php configuration file of Laravel. To do so, update the configuration file as shown below.

Next you have to add the environment variables. Go to your stripe dashboard and get your stripe key and secret, so you can add it to your .env file.

Now go ahead and enable the payment provider in the marqant-pay.php configuration file.

Next you will need to add the fields for stripe on the billables you setup in the marqant-pay setup. So run the following for each billable model that you have setup (or will setup).

If you are using the marqant-lab/marqant-pay-subscriptions package to enable subscriptions, then you will need to add the --subscriptions flag to the choosen command.

Now you can run the migrations as usual.

And that's it, you should be good to go now.

WebHooks:

We using spatie/laravel-stripe-webhooks package for stripe webhooks.

Configuration:

Add STRIPE_WEBHOOK_SECRET to your .env

You can find the secret used at the webhook configuration settings on the Stripe dashboard.

run $ php artisan migrate if you don't do it before.

Go to your your_project/app/Http/Middleware/VerifyCsrfToken.php and add this row:

Finally, take care of the routing:
At the Stripe dashboard you must configure at what url Stripe webhooks should hit your app.

You should set it up to '/stripe/webhook'.

Example of Endpoint URL:
http://your.awesome.site/stripe/webhook

Available stripe events:

For 'payment_intent.payment_failed' you should set configs 'marqant-pay.payment_urls.base_url' and 'marqant-pay.payment_urls.payment_sub_url',
description at config file.
You need also look at 'marqant-pay.support_emails' config.

You can also add to project/resources/lang these keys for translate:

Example resources/lang/en.json:

They are used at emails for 'payment_intent.payment_failed' event

That's all you need


All versions of marqant-pay-stripe with dependencies

PHP Build Version
Package Version
Requires stripe/stripe-php Version ^7.29
spatie/laravel-stripe-webhooks Version ^2.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package marqant-lab/marqant-pay-stripe contains the following files

Loading the files please wait ....