2014-01-29 21:18:13 +00:00
|
|
|
script(id='modals/buyGems.html', type='text/ng-template')
|
2013-10-12 23:47:49 +00:00
|
|
|
.modal-body
|
2014-01-28 00:34:22 +00:00
|
|
|
.buy-gems
|
2015-01-02 00:01:44 +00:00
|
|
|
+gemButton(true)
|
2014-01-28 00:34:22 +00:00
|
|
|
.well
|
2014-01-29 00:30:05 +00:00
|
|
|
h3=env.t('buyGems')
|
2014-01-28 00:34:22 +00:00
|
|
|
table.table
|
|
|
|
|
tr
|
|
|
|
|
td
|
|
|
|
|
span.dashed-underline(popover=env.t('donateText1'),popover-trigger='mouseenter',popover-placement='right')
|
|
|
|
|
| +20 <span class="Pet_Currency_Gem1x inline-gems"/>
|
|
|
|
|
tr
|
|
|
|
|
td
|
|
|
|
|
span.dashed-underline(popover=env.t('donateText3'),popover-trigger='mouseenter',popover-placement='right')
|
|
|
|
|
=env.t('donateText2')
|
|
|
|
|
tr
|
2014-01-29 00:30:05 +00:00
|
|
|
td.alert.alert-info $5
|
|
|
|
|
=env.t('USD')
|
2014-01-28 00:34:22 +00:00
|
|
|
tr
|
|
|
|
|
td
|
2014-03-25 02:00:11 +00:00
|
|
|
p
|
2014-06-07 12:26:58 +00:00
|
|
|
small.muted=env.t('paymentMethods')
|
2014-11-30 21:01:58 +00:00
|
|
|
.btn.btn-primary(ng-click='Payments.showStripe({})')=env.t('card')
|
2014-03-25 02:00:11 +00:00
|
|
|
a.btn.btn-warning(href='/paypal/checkout?_id={{user._id}}&apiToken={{user.apiToken}}') PayPal
|
2015-06-03 20:05:55 +00:00
|
|
|
div#AmazonPayButton
|
|
|
|
|
script(type='text/javascript').
|
|
|
|
|
var authRequest;
|
|
|
|
|
OffAmazonPayments.Button('AmazonPayButton', window.env.AMAZON_PAYMENTS.SELLER_ID, {
|
|
|
|
|
type: 'PwA',
|
|
|
|
|
color: 'Gold',
|
|
|
|
|
size: 'small',
|
|
|
|
|
|
|
|
|
|
authorization: function() {
|
|
|
|
|
loginOptions =
|
|
|
|
|
{scope: 'payments:widget', popup: true};
|
|
|
|
|
authRequest = amazon.Login.authorize (loginOptions,
|
|
|
|
|
'https://habitrpg.com');
|
|
|
|
|
},
|
|
|
|
|
onError: function(error) {
|
|
|
|
|
console.error('amazon payments error ', error)
|
|
|
|
|
}
|
|
|
|
|
});
|
2014-01-28 00:34:22 +00:00
|
|
|
|
|
|
|
|
div(ng-include="'partials/options.settings.subscription.html'")
|
2013-10-12 23:47:49 +00:00
|
|
|
|
|
|
|
|
.modal-footer
|
2014-02-08 15:27:34 +00:00
|
|
|
button.btn.btn-default(ng-click='$close()')=env.t('cancel')
|