mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-02 04:00:36 +00:00
fix(gifts): $rootScope => Payments
This commit is contained in:
parent
bd5f8d79ea
commit
3423e9857d
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ function($rootScope, User, $http, Content) {
|
|||
panelLabel: sub ? window.env.t('subscribe') : window.env.t('checkout'),
|
||||
token: function(res) {
|
||||
var url = '/stripe/checkout?a=a'; // just so I can concat &x=x below
|
||||
if (data.gift) url += '&gift=' + $rootScope.encodeGift(data.uuid, data.gift);
|
||||
if (data.gift) url += '&gift=' + Payments.encodeGift(data.uuid, data.gift);
|
||||
if (data.subscription) url += '&sub='+sub.months;
|
||||
$http.post(url, res).success(function() {
|
||||
window.location.reload(true);
|
||||
|
|
|
|||
Loading…
Reference in a new issue