1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Fixed minor contribution bug

This commit is contained in:
Jon Ziebell 2022-10-16 21:52:38 -04:00
parent d9436a68a1
commit f68cce04de
2 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,6 @@ class stripe_payment_link extends cora\crud {
public static $exposed = [ public static $exposed = [
'private' => [ 'private' => [
'get',
'open' 'open'
], ],
'public' => [] 'public' => []

View File

@ -251,7 +251,7 @@ beestat.component.card.contribute.prototype.decorate_contents_ = function(parent
.set_background_hover_color() .set_background_hover_color()
.removeEventListener('click'); .removeEventListener('click');
window.open('https://dev.app.beestat.io/api/?resource=stripe_payment_link&method=open&arguments={"attributes":{"amount":' + (contribute_amount * 100) + ',"currency":"' + beestat.setting('units.currency') + '","interval":"' + contribute_interval + '"}}&api_key=' + beestat.api.api_key); window.open('api/?resource=stripe_payment_link&method=open&arguments={"attributes":{"amount":' + (contribute_amount * 100) + ',"currency":"' + beestat.setting('units.currency') + '","interval":"' + contribute_interval + '"}}&api_key=' + beestat.api.api_key);
setTimeout(function() { setTimeout(function() {
self.rerender(); self.rerender();