...
- In Magento Admin, click on Stores. Then under Settings, choose Configuration.
- In the side menu under Sales, choose Payment Methods.
- IMPORTANT: If your Magento installation has multiple websites, stores or views, make sure to select proper scope in the drop down at the top left hand corner of the side navigation.
- In the Merchant Location section, verify that Merchant Country is set to the location of your business.
- Under Other Payment Methods, in the Stripe section, click on the
- Enter a Title to identify Stripe as a payment option during checkout.
- Set the current operating Environment for Stripe transactions to one of the following:
- Test
Live
Info When testing the configuration in a sandbox, use only credit card numbers that are recommended by Stripe. When you are ready to go live with Stripe, set Environment to Live.
- Set Payment Action to one of the following:
- Authorize - Approves the purchase and puts a hold on the funds. The amount is not withdrawn from the customer’s bank account until the sale is “captured” by the merchant.
- Authorize and Capture - The amount of the purchase is authorized and immediately withdrawn from the customer’s account.
- Enter the following credentials from your Stripe account:
- Secret Key
- Publishable Key
to expand the section. - Set Enabled to Yes.
- If you want the ability to store customer information securely, set Vault Enabled to Yes. This feature will allow your customers to place subsequent orders quickly without having to re-enter their information again.
STEP 3: Complete the Advanced Settings (optional)
- Expand the Advanced Stripe Settings section.
- If you want Stripe to automatically send email receipts after a successful payment, or when you refund one, set Enable Receipt Email feature1 to Yes.
Note: pay attention that Magento has default payment confirmation functionality. It can be found and configured in Stores → Configuration → Sales → Sales Emails → Invoice.
Also: make sure that you enabled Successful payments and/or Refunds in Settings → Emails on the Stripe side. - In the Vault Title field, enter a descriptive title for your reference that identifies the vault where your customer card information is stored.
- Set the default status for new orders created with Stripe as a payment method in the New Order Status dropdown to one of the following:
- Processing (default)
- Suspected Fraud
- In the Credit Card Types box, hold down the Ctrl key and select each credit card that is accepted by your store as payment through Stripe.
- If you want the system to save a log file of interactions between your store and Stripe, set Debug to Yes.
- Enter the Minimum Order Total and Maximum Order Total for Direct Post transactions. To qualify, the order total must exactly match the minimum or maximum threshold, or fall somewhere in between.
- In the Sort Order field, enter a number to determine the sequence in which Stripe appears when listed with other payment methods during checkout.
...