Closed Maggicorp closed 7 years ago
Can you please reword this question and provide more context? Are you trying to include a Stripe button in your template? What have you tried so far? What do you mean when you ask if you still need to pug?
We are putting in this in our cart display. Basically we are reading the set up documentation and we were wondering if we needed to install pug or if we could just do it with a button?
<div class="sripe-checkout">
<script src="https://checkout.stripe.com/checkout.js"></script>
<button type="button" id="checkout-btn" class="btn btn-primary">Checkout</button>
</div>
This is the documentation we are looking at, and we are on part 3 - https://stripe.com/docs/checkout/express
It seems like you are trying to do what is outlined here https://stripe.com/docs/recipes/custom-checkout ? (Note: they use fetch
where we use $.ajax
).
Yes, I think we are. Is that cool? Someone linked the other documentation in an issues, but I think we are gonna take the custom non pug route. We are moving forward on this way.
Can we get a one on one with this? We could use some help getting oriented with stripe
Help! The set up documentation told us to put files in app.js but we don't have that file so we put it in server.js (on the back end). We are using these steps to set up - https://stripe.com/docs/recipes/custom-checkout - and on step 4 it said to run this
PUBLISHABLE_KEY=pk_test_6pRNASCoBOKtIshFeQd4XMUh SECRET_KEY=sk_test_BQokikJOvBiI2HlWgH4olfQ2 node app.js
which we ran with node server.js and it gave us this error - can't find module app/middleware in server.js, which it has been happily accessing all along. /Help!
we had to change the way that we entered the secret keys, by saving them in a .env file and not passing them through the command line. It doens't work perfectly but it does pop-up a module to enter credit card information into.
The stripe documentation only shows how to install a button using the views. How do we interface it without our .pug? Or do we need to still pug?