diff --git a/api/stripe_payment_link.php b/api/stripe_payment_link.php index eba58a4..2aca019 100644 --- a/api/stripe_payment_link.php +++ b/api/stripe_payment_link.php @@ -9,7 +9,6 @@ class stripe_payment_link extends cora\crud { public static $exposed = [ 'private' => [ - 'get', 'open' ], 'public' => [] diff --git a/js/component/card/contribute.js b/js/component/card/contribute.js index 44a4d32..c36601a 100644 --- a/js/component/card/contribute.js +++ b/js/component/card/contribute.js @@ -251,7 +251,7 @@ beestat.component.card.contribute.prototype.decorate_contents_ = function(parent .set_background_hover_color() .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() { self.rerender();