I am using the Charge plugin. They payment process happens in a modal. If I enter in a bad number from one of the stripe test numbers and submit, when the payment fails the modal goes away and no errors are shown. The errors are not getting loaded into the div set for payment errors. I do get the errors before form submit but that doesn't help with a bad card or something.
I am getting the error in the cp and can see it but I cannot find anything in their documentation to log this to the view.
I have read here quite a bit and also viewed thier example and I am not doing anything different. But for some reason I cannot get the declined error to show on the entry page once it returns.
this is the script
<script>
(function () {
Stripe.setPublishableKey('{{ craft.charge.getPublicKey() }}');
$(this).charge('#charge-form', '#payment-errors', '.charge-indicator');
})();
</script>
Form is almost exactly the same as their example except that I have a few custom fields (those are not the fields with errors in them).
If anyone has any experience with this plugin that can shed some light on how to return a declined card error or any errors that occur after form submission it would be greatly appreciated.
I see this in the cp