Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDaniel Feather
13,522 PointsCan I use an icon font (e.g. Font Awesome) with the data-label="" attribute in Stripe Checkout.
Here is the code from my checkout page
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Stripe</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css" class="FontAwesome">
</head>
<body>
<?php require_once('config.php'); ?>
<form action="charge.php" method="POST">
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="<?php echo $stripe['publishable_key']"
data-amount="16000"
data-name="Elephpant"
data-description="Purple Budle of Joy"
data-image="img/Elephpant.png"
data-locale="auto"
data-currency="gbp"
data-label=" Donate"
>
</script>
</form>
</body>
</html>
Here is where I would like to place the icon. I'm not sure how to go about this though.
data-label="(icon) Donate"