Skip to content

Commit dbe1fc3

Browse files
committed
Add Stripe payment links!
1 parent cb980d6 commit dbe1fc3

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

src/components/landing/Team.js

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ const Team = ({ urlToken }) => {
9191
} = data
9292

9393
const seatsLeft = totalSeats - members.length
94+
const packageDisplayName =
95+
packageType === 'FULLTEAM' ? 'Full package' : 'Pro package'
96+
const stripeLink =
97+
packageType === 'FULLTEAM'
98+
? '//buy.stripe.com/8wM0290DO4l7enCdQQ'
99+
: '//buy.stripe.com/fZebKR72c4l73IY8wx'
94100

95101
return (
96102
<main className="Team">
@@ -126,13 +132,20 @@ const Team = ({ urlToken }) => {
126132
</ul>
127133
</div>
128134
<p className="Team-summary">
129-
{totalSeats}-seat license:{' '}
130-
{packageType === 'FULLTEAM' ? 'Full package' : 'Pro package'}. Add 5
131-
more seats{' '}
132-
<a href={`//paypal.me/graphqlguide/${getPackage(packageType).price}`}>
133-
by PayPal
135+
{`${totalSeats}-seat license: ${packageDisplayName}. Seats are non-transferable. Add
136+
more seats `}
137+
<a href={stripeLink}>via Stripe</a>
138+
{' or '}
139+
<a
140+
href={`//paypal.me/graphqlguide/${
141+
getPackage(packageType).seatPrice
142+
}`}
143+
>
144+
PayPal
134145
</a>
135-
. (Put your team name in the payment note.)
146+
{`, and we’ll process it shortly. Or send a purchase order to `}
147+
148+
{`, and we’ll send you an invoice.`}
136149
</p>
137150
</div>
138151
</main>

src/lib/packages.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const packages = [
6969
name: 'Team license',
7070
isGroup: true,
7171
price: 349,
72+
seatPrice: 70,
7273
includesTshirt: false,
7374
includesSlackAccess: false,
7475
},
@@ -78,6 +79,7 @@ const packages = [
7879
name: 'Full team license',
7980
isGroup: true,
8081
price: 1000,
82+
seatPrice: 200,
8183
includesTshirt: true,
8284
includesSlackAccess: true,
8385
},

0 commit comments

Comments
 (0)