├── CHANGELOG.md
├── LICENSE
├── README.md
├── components
└── PaymentStripe.vue
├── index.ts
└── package.json
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 | All notable changes to this project will be documented in this file.
3 |
4 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
5 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6 |
7 | ## [2.6.2] - 6.05.2020
8 | - Added options for stripe customization - @paulpartington-cti
9 | - Fixed readme - @ianrushton88
10 | - Added support translation for title of payment method - @dimasch
11 |
12 | ## [2.6.1] - 13.04.2020
13 |
14 | - Fixed placing order (event bus registration)
15 |
16 | ## [2.6.0] - 12.04.2020
17 |
18 | - Compatibility with VSF 1.11.x, updated documentation. - @dimasch (#43)
19 |
20 | ## [2.5.3] - 09.12.2019
21 |
22 | - Hide loader if we have card input validation errors. - @dimasch (#37)
23 |
24 | ## [2.5.2] - 08.12.2019
25 |
26 | - Fixed after clicking on the "Place the order" button, the page loading icon appears and immediately disappears - @dimasch (#35)
27 |
28 | ## [2.5.1] - 01.12.2019
29 |
30 | - Load the stripe dependencies on component mount level - prevent load on home page and etc. - @dimasch (#33)
31 |
32 | ## [2.5.0] - 12.11.2019
33 |
34 | ### New feature
35 | - Compatibility with the official Stripe magento2 module - @dimasch (#20)
36 |
37 | ## [2.4.1] - 10.11.2019
38 |
39 | ### Fixed
40 | - Added support the custom payment method code - @dimasch (#30)
41 |
42 | ## [2.4.0] - 5.11.2019
43 |
44 | ### Fixed
45 | - Added VSF module signature for beforeRegistration hook - @dimasch (#28)
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Develo Design.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Stripe Payment module for Vue Storefront
2 |
3 | Stripe Payment extension for [vue-storefront](https://github.com/DivanteLtd/vue-storefront), by [Develo Design](https://develodesign.co.uk).
4 |
5 | 
6 |
7 | ## Installation
8 |
9 | By hand (preferred):
10 | ```shell
11 | git clone https://github.com/develodesign/vsf-payment-stripe.git ./vue-storefront/src/modules/payment-stripe
12 | ```
13 |
14 | By yarn:
15 | ```shell
16 | cd storefront/src/themes/default
17 | yarn add https://github.com/develodesign/payment-stripe
18 | ```
19 |
20 | Add the following **Publishable** API key also to your `config/local.json` and configure the `stripe.apiKey` to point to your Stripe details.
21 |
22 | ```json
23 | "stripe": {
24 | "apiKey": "my_publishable_api_key"
25 | }
26 | ```
27 |
28 | ## Registering the Stripe module
29 |
30 | Add script import to `./src/modules/client.ts`
31 |
32 | ```js
33 | import { PaymentStripeModule } from './payment-stripe'
34 |
35 | export function registerClientModules () {
36 | ...
37 | registerModule(PaymentStripeModule)
38 | }
39 | ```
40 |
41 | ## Integrating the Stripe component with your theme
42 |
43 | Go to `storefront/src/themes/defalt/components/core/blocks/Checkout/Payment.vue`
44 |
45 | ```js
46 | import { mapGetters } from 'vuex'
47 | import PaymentStripe from 'src/modules/payment-stripe/components/PaymentStripe'
48 |
49 | export default {
50 | components: {
51 | ...,
52 | PaymentStripe
53 | },
54 | computed: {
55 | ...mapGetters({
56 | paymentDetails: 'checkout/getPaymentDetails'
57 | })
58 | },
59 | ```
60 |
61 | Then need add the component instance `