feat(gifts): allow gifting gems from paypal/stripe
This commit is contained in:
@@ -20,7 +20,7 @@ script(id='modals/buyGems.html', type='text/ng-template')
|
||||
td
|
||||
p
|
||||
small.muted=env.t('paymentMethods')
|
||||
.btn.btn-primary(ng-click='showStripe()')=env.t('card')
|
||||
.btn.btn-primary(ng-click='showStripe({})')=env.t('card')
|
||||
a.btn.btn-warning(href='/paypal/checkout?_id={{user._id}}&apiToken={{user.apiToken}}') PayPal
|
||||
|
||||
div(ng-include="'partials/options.settings.subscription.html'")
|
||||
|
||||
@@ -96,6 +96,6 @@ script(type='text/ng-template', id='modals/send-gift.html')
|
||||
.modal-footer
|
||||
- var fromBal = "gift.type=='gems' && gift.gems.fromBalance"
|
||||
button.btn.btn-primary(ng-show=fromBal, ng-click='sendGift(profile._id, gift)')=env.t("send")
|
||||
a.btn.btn-primary(ng-hide=fromBal, ng-click='showStripe({uuid:profile._id})')=env.t('card')
|
||||
a.btn.btn-warning(ng-hide=fromBal, href='/paypal/checkout?uuid={{profile._id}}') PayPal
|
||||
a.btn.btn-primary(ng-hide=fromBal, ng-click='showStripe({gift:gift, uuid:profile._id})')=env.t('card')
|
||||
a.btn.btn-warning(ng-hide=fromBal, href='/paypal/checkout?_id={{::user._id}}&apiToken={{::user.apiToken}}&gift={{encodeGift(profile._id, gift)}}') PayPal
|
||||
button.btn.btn-default(ng-click='$close()')=env.t('cancel')
|
||||
Reference in New Issue
Block a user