Stripe Payment Gateway for Magento 2

Stripe Payment Gateway for Magento 2 module is PCI compliant payments system and will work in Live and in Debugging mode. With Stripe Payment Gateway for Magento2, the customers can securly checkout for the payment as it doesn’t store any customer information.

Installation

Stripe Payment Gateway for Magento2 installation is super easy. First, you have to unzip the module and then you will get an src folder. Click on the src folder and then you will get app folder. You need to move app folder in Magento 2 root directory as per the screenshot.

After the successful installation, you have to run these commands in the Magento2 root directory.

First command-composer require stripe/stripe-php

Second Command -php bin/magento setup:upgrade

Third Command – php bin/magento setup:di:compile

Fourth Command – php bin/magento setup:static-content:deploy

After running the commands, you have to log into the admin panel and you have to clear the Cache. You can refer to the below screenshot.

Multi-Lingual Support

For the multilingual support, the admin will navigate through Store->Configuration->General ->Locale Options and select the locale as German (the language into which admin want to translate his store content).

Language Translation

If a user wants to translate their module from English to German then they need to follow the path app/code/Webkul/Stripe/i18n in their unzipped Magento Marketplace folder and will get a CSV file with name “en_US.csv”. Now they will rename that CSV as “de_DE.csv” and translate all right side content after the comma in the German language. After editing the CSV, save it and then upload it to the path app/code/Webkul/Stripe/i18n where they have installed Magento2 on their server. The module will get translated in the German Language. It supports both the LTR and RTL languages.

Minimum Order Total- It will allow the admin to set minimum order total. If Grand total of order is less than specified Minimum Order Total value then Stripe module will not allow to checkout with Stripe payment gateway. $0.50 is the minimum amount allowed by Stripe for Minimum Order Total.

Maximum Order Total- This option allows admin to set maximum order total.

Sort Order- Here the admin can set the sort order value for the stripe payment gateway.

Generate Webhook – The admin can generate the webhook and see the collected data from the stripe dashboard.

How to get API keys from Stripe –

To get the API Keys you can use Stripe website. First you’ll need to Signup to stripe if you don’t already have a stripe account or you can also Sign in to the stripe you already have a stripe account.

after filling these details you’ll be redirect to the Stripe welcome page. Here you can select the solution you’re looking for i.e., Solution for developers, and Pre-build Solution

Here, you can click on the Solution for developers to get the API credentials. Now from the stripe dashboard you can click on the toggle button of the viewing test data, if you’re using the module for the test purpose or you can also use the live credentials of your stripe account API’s if you want to setup the module for the live website.

How to get Sandbox API credentials from Stripe –

Now, the admin can click on the Developers option and get the Test API credentials as shown in the image below –

The admin can use API Publishable Key, and API Secret keys in the admin configuration to set up the module.

How to get Production API credentials from Stripe –

The admin can get the API credentials for the production mode too. For this the admin can click on the Viewing test toggle button to disable the test mode and get the API keys for the production mode.

Now, the admin can select the Debug mode as Production to use the API keys for the live website.

Generate Webhooks in Stripe Payment Gateway for Magento 2 –

In web development a webhook is a method of altering the behavior of a web page, or web application, with custom callbacks. Webhooks are basically user defined HTTP callbacks which are triggered by specific events.

From the admin dashboard, the admin can click on the Generate Webhook and generate the data.

after successful generating the webhook, the admin can see the successful message from the admin dashboard as shown in the image below –

Whenever that trigger event occurs in the website, the webhook sees the event and collects the data.

Now, the admin can see the collected data from the stripe dashboard as shown in the image below –

The admin can also click on the generated URL for the detailed view of the events as shown in the image below –

Workflow – Customer End

Now, after successful intigration and setup of the Stripe Payment Gateway for Magento 2, the customer can visit the website and add the product to the cart, then process further to checkout and complete the order.

Here, the customer can select the Stripe as a payment method to complete the order.

After clicking on the Place Order button, the customer will redirect to the stripe payment page. Here, the customer can enter the card details and pay the amount.

The customer will redirect to the thank you page after making the successful payment.

Logged in customer can click on the order id to see the details of the order. Here, the customer can also see the payment method as shown in the image below –

Guest Checkout –

If the customer is not logged in, then the guest customer can also checkout with the stripe payment.

The customer can add the product to the cart and then select the stripe as the payment method.

After clicking on the Place Order button, the customer will redirect to the stripe payment page. Here, the customer can enter the card details and pay the amount.

Now, after successful payment the customer will be redirect to the thank you page as shown in the image below –

At Backend OF Stripe Payment – Admin End

The admin can see the placed order details with Stripe Payment Gateway by navigating to Sales> Orders from the admin dashboard.

Now, the admin can click on the view button to see the order information as shown in the image below –

The admin can also see the invoices and transactions details for that particular order in which payment is done using Stripe Payment.

Invoice Page –

The admin can click on the Transction tab to see the transaction details as shown in the image below –

Transaction Page Details –

By clicking on the particular transaction, the admin can view the complete details of the transaction –

Transaction- Stripe Payment Gateway

The admin can check the list of transactions from the stripe payment gateway dashboard. The admin can view all the types of transactions and can export them by selecting the “Export” button.

Refund – Stripe Payment Gateway

Using the Stripe Payment Gateway for Magento 2, the admin can also do online refund using this payment module from the admin dashboard. The admin can navigate to Sales> Order and click on the view button for the order, the admin wants to refund to the customer.

Now, under the Invoice menu, click on the specific invoice and then click on the view button –

Now the admin click on the Credit Memo button as shown in the image below –

Now, the admin can enter the ammount accordingly and click on the refund button as show in the image below –

The admin can also check the refund status and refunded amount on Stripe payment gateway from the stripe dashboard as shown in the image below –

The admin can also click on the refunded order to see the complete details of the refund.

That’s all for Stripe Payment Gateway for Magento2 module. Still, have any issue feel free to add a ticket and let us know your views to make the module better http://webkul.uvdesk.com/

Save my name email and website in this browser for the next time I comment.

DenysDecember 1, 2018 at 5:03 pm

Hello, Webkul guys 😉
Have a question about this module. Tell me…
Can it be switched to make payment not on the website side, but on Stripe’s side? Oldschool redirecting to payment gateway and back to success/error page? I need it cuzz don’t very want to store credit cards due to GDPR liability. If not, tell please, how much will cost realization of such feature. Thank you!