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