JourneyJoker/templates/payment/redirect_stripe.js

7 lines
217 B
JavaScript
Raw Normal View History

2021-03-01 09:56:10 +00:00
{% load dbsetting %}
var stripe = Stripe('{% dbsetting "stripe.key.public" %}');
stripe.redirectToCheckout({
sessionId: '{{ object.session }}'
}).then(function (result) {
alert(result.error.message);
});