Heads up! This extension installation will only make you halfway to success. Supplementing it with a Stripe extension back-end is a must
Learn more about installing Scandipwa extensions in our official docs ๐
Note 1: In order to get this payment method, you need to install additional extensions.
Stripe is implemented via stripe react-stripe-elements
component. In the checkout it looks like this for simple card payments:
To install:
Note 2: it is recommended to install from Magento Marketplace - bellow is the manual instruction
- Go to https://stripe.com/docs/plugins/magento/install
- Download the archive containing the FE part of the extension from the marketplace or GitHub
- Create a
packages
directory inside of your theme's root (cd packages/scandipwa && mkdir packages
) - Put the archive's contents inside of the
packages/<package name>
directory. Make sure that you have apackages/<package name>/package.json
file present alongside all the other extension's contents, that means that you have unpacked the extension correctly. Note:<package name>
can also include publisher,@scandipwa/stripe-payments
is a valid package name. - Add the following scripts to the scripts section of your theme's
package.json
file. This is necessary for your package to be symlinked into thenode_modules
directory of your theme after manipulations with dependencies
{
"scripts": {
"postinstall": "scandipwa-scripts link",
"postupdate": "scandipwa-scripts link"
}
}
- Add the extension to the dependencies of your theme, as follows:
{
"dependencies": {
"@scandipwa/stripe-payments": "file:packages/stripe-payments"
}
}
- Enable the extension:
{
"scandipwa": {
"extensions": {
"stripe-payments": true
}
}
}
- Run the
npm i
oryarn
command in the theme root directory amongst with thepostinstall
command that you have added in Step 5. Facing the installation difficulties? Please ensure you have read all our FAQs
To configure:
- Go to https://dashboard.stripe.com/ - signup
- Go to Developer > Api Keys, copy credentials
- Go to Store > Configuration > Sales > Payment Methods > Stripe and enter credentials from above
Technical details:
Extends the Magento store config to include the publishable Stripe API keys and the current mode. These can be configured in the Magento Admin panel, in Stores > Settings: Configuration > Sales: Payment Methods > Stripe > Basic Settings
Example query:
query {
storeConfig {
stripe_mode
stripe_live_pk
stripe_test_pk
}
}