JourneyJoker/templates/payment/redirect_stripe.js

7 lines
No EOL
217 B
JavaScript

{% load dbsetting %}
var stripe = Stripe('{% dbsetting "stripe.key.public" %}');
stripe.redirectToCheckout({
sessionId: '{{ object.session }}'
}).then(function (result) {
alert(result.error.message);
});