How to configure Stripe Credit Card payment?¶
One of very important payment methods in e-commerce are credit cards. Payments via credit card are in Sylius supported by Stripe.
Stripe is not available by default in Sylius, to have it you need to add its package via composer.
$ php composer require stripe/stripe-php:~4.1
Add a payment method with the Stripe gateway in the Admin Panel¶
To test this configuration properly you will need a developer account on Stripe.
- Create a new payment method, choosing the
Stripe Credit Cardgateway from the gateways choice dropdown and enable it for chosen channels.
Go to the
- Fill in the Stripe configuration form with your developer account data (
- Save the new payment method.
If your are not sure how to do it check how we do it for Paypal in this cookbook.
Choosing Stripe Credit Card method in Checkout¶
From now on Stripe Credit Card will be available in Checkout in the channel you have added it to.