We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c466c12 commit a7f6d43Copy full SHA for a7f6d43
1 file changed
src/resources/views/scripts.blade.php
@@ -38,8 +38,11 @@ function processBrainBlocks() {
38
size: brainBlocksButtonSize
39
},
40
onPayment: function (data) {
41
- document.getElementById(brainBlocksButtonId+"-token").value = data.token;
42
- document.getElementById(brainBlocksButtonId+"-form").submit();
+ //throw a short delay before verifying to make sure payment is fulfilled
+ setTimeout(function(){
43
+ document.getElementById(brainBlocksButtonId+"-token").value = data.token;
44
+ document.getElementById(brainBlocksButtonId+"-form").submit();
45
+ }, 5000);
46
}
47
}, '#'+brainBlocksButtonId+'-button');
48
0 commit comments