Преглед изворни кода

fix payment display and stripe error

pull/1/head
Jonathan Cobb пре 4 година
родитељ
комит
8f2ae033f1
2 измењених фајлова са 8 додато и 4 уклоњено
  1. +6
    -1
      src/_helpers/router.js
  2. +2
    -3
      src/account/payment/StripePayment.vue

+ 6
- 1
src/_helpers/router.js Прегледај датотеку

@@ -45,7 +45,12 @@ export const router = new Router({
children: [
{
path: '', component: NetworksPage,
children: newNetworkChildren
children: [
{
path: '', component: NewNetworkPage,
children: newNetworkChildren
},
]
},
{ path: '/me', component: ProfilePage },
{ path: '/me/policy', component: PolicyPage },


+ 2
- 3
src/account/payment/StripePayment.vue Прегледај датотеку

@@ -43,9 +43,8 @@
...mapActions('paymentMethods', ['addAccountPaymentMethod']),
authorizeCard(e) {
const comp = this;
console.log('this.errors='+JSON.stringify(this.errors));
this.errors.clear();
window.stripe.createToken(this.card).then(function(result) {
console.log('authorizedCard: created token='+JSON.stringify(result.token));
if (result.error) {
console.log('authorizedCard: had errors: '+JSON.stringify(result.error));
self.hasCardErrors = true;
@@ -54,7 +53,7 @@
} else {
comp.submitted = true;
comp.addAccountPaymentMethod({
userId: this.user.uuid,
userId: comp.user.uuid,
paymentMethod: {
paymentMethodType: 'credit',
paymentInfo: result.token.id


Loading…
Откажи
Сачувај