Skip to content

Commit fce74b0

Browse files
committed
added webhook page, removed footer
1 parent 5bb8617 commit fce74b0

File tree

4 files changed

+137
-2
lines changed

4 files changed

+137
-2
lines changed

docs/getting_started.md

+38-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,38 @@
1-
Create Stripe Account!
1+
#Getting Started With ServiceBot
2+
3+
###Stripe Setup
4+
5+
ServiceBot has a very close integration with stripe so each instance
6+
needs to have access to Stripe API keys and have Stripe Webhooks setup
7+
Follow the following steps in order to get everything working
8+
9+
####Create Stripe Account
10+
Go to <https://dashboard.stripe.com/register> and register
11+
12+
####Get Stripe API Keys
13+
ServiceBot uses Stripe APIs - when prompted in the setup enter the keys on
14+
this page <https://dashboard.stripe.com/account/apikeys>
15+
16+
17+
18+
!!! note
19+
Use the live mode key if you want real transactions to occur when users
20+
order services, while in test mode all transactions will be faked in
21+
Stripe.
22+
23+
####Create Stripe webhooks
24+
25+
In order to have ServiceBot and Stripe communicate with each other we need
26+
to create webhooks in stripe.
27+
28+
- go to <https://dashboard.stripe.com/account/webhooks>
29+
- Create a new webhook and enter your ServiceBot url and select live mode
30+
and send all events
31+
32+
![Screenshot](./images/stripe_webhooks.png)
33+
34+
!!! note
35+
Optionally you can create a test mode webhook if you would like test mode to be
36+
fully connected to stripe
37+
38+
- Stripe will now communicate properly with your server.

docs/images/stripe_webhooks.png

98 KB
Loading

mkdocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ extra:
44
logo: "images/logo-white-square.png"
55
social:
66
- type: github-alt
7-
link: https://github.com/service-bot
7+
link: https://github.com/service-bot/servicebot-docs
88
- type: twitter
99
link: https://twitter.com/servicebot_io
1010
theme_dir: 'theme'

theme/partials/footer.html

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<!--
2+
Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to
6+
deal in the Software without restriction, including without limitation the
7+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8+
sell copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in
12+
all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20+
IN THE SOFTWARE.
21+
-->
22+
23+
{% import "partials/language.html" as lang %}
24+
25+
<!-- Application footer -->
26+
<footer class="md-footer">
27+
28+
<!-- Link to previous and/or next page -->
29+
{% if page.previous_page or page.next_page %}
30+
<div class="md-footer-nav">
31+
<nav class="md-footer-nav__inner md-grid">
32+
33+
<!-- Link to previous page -->
34+
{% if page.previous_page %}
35+
<a href="{{ page.previous_page.url }}"
36+
title="{{ page.previous_page.title }}"
37+
class="md-flex md-footer-nav__link md-footer-nav__link--prev"
38+
rel="prev">
39+
<div class="md-flex__cell md-flex__cell--shrink">
40+
<i class="md-icon md-icon--arrow-back
41+
md-footer-nav__button"></i>
42+
</div>
43+
<div class="md-flex__cell md-flex__cell--stretch
44+
md-footer-nav__title">
45+
<span class="md-flex__ellipsis">
46+
<span class="md-footer-nav__direction">
47+
{{ lang.t('footer.previous') }}
48+
</span>
49+
{{ page.previous_page.title }}
50+
</span>
51+
</div>
52+
</a>
53+
{% endif %}
54+
55+
<!-- Link to next page -->
56+
{% if page.next_page %}
57+
<a href="{{ page.next_page.url }}" title="{{ page.next_page.title }}"
58+
class="md-flex md-footer-nav__link md-footer-nav__link--next"
59+
rel="next">
60+
<div class="md-flex__cell md-flex__cell--stretch
61+
md-footer-nav__title">
62+
<span class="md-flex__ellipsis">
63+
<span class="md-footer-nav__direction">
64+
{{ lang.t('footer.next') }}
65+
</span>
66+
{{ page.next_page.title }}
67+
</span>
68+
</div>
69+
<div class="md-flex__cell md-flex__cell--shrink">
70+
<i class="md-icon md-icon--arrow-forward
71+
md-footer-nav__button"></i>
72+
</div>
73+
</a>
74+
{% endif %}
75+
</nav>
76+
</div>
77+
{% endif %}
78+
79+
<!-- Further information -->
80+
<div class="md-footer-meta md-typeset">
81+
<div class="md-footer-meta__inner md-grid">
82+
83+
<!-- Copyright and theme information -->
84+
<div class="md-footer-copyright">
85+
{% if config.copyright %}
86+
<div class="md-footer-copyright__highlight">
87+
{{ config.copyright }}
88+
</div>
89+
{% endif %}
90+
</div>
91+
92+
<!-- Social links -->
93+
{% block social %}
94+
{% include "partials/social.html" %}
95+
{% endblock %}
96+
</div>
97+
</div>
98+
</footer>

0 commit comments

Comments
 (0)