These are chat archives for reactioncommerce/reaction

8th
Jul 2015
Thregg Poppa
@mattmcegg
Jul 08 2015 16:51
hi everyone, i keep getting an error when trying to complete an order... any payment method has the same error, the name just changes.... Exception in delivering result of invoking 'braintreeSubmit': onbeforepaymentMethod or Exception in delivering result of invoking 'stripeSubmit': onbeforepaymentMethod
Aaron Judd
@aaronjudd
Jul 08 2015 17:38
@mattmcegg are you testing locally?
Thregg Poppa
@mattmcegg
Jul 08 2015 20:31
yes... thats the issue i take it?
Aaron Judd
@aaronjudd
Jul 08 2015 20:49
well, actually I was going to say, make sure that you have the development branch of braintree package locally (clone into packages dir). I’ve been testing frequently but only with 0.6.0 (development)
I’m not 100% that’s what you are experiencing, as there are some exceptions that aren’t being caught - and this could be just a config error, but with correct credentials locally all the payment methods are working for me.
Thregg Poppa
@mattmcegg
Jul 08 2015 21:03
hmm yea i am on 0.6.0 dev branch. i have done almost no custom configuration and I am getting that same error with all payment methods ive tried (paypal, braintree, stripe).
Spencer Norman
@spencern
Jul 08 2015 21:04
Do you have the dev branch of the payment package in your /packages dir?
Spencer Norman
@spencern
Jul 08 2015 23:19

Trying to debug some weird testing errors I’m getting from the shop tests and ran into this:

try
      shop =  Factory.create 'shop', shop
      Roles.addUsersToRoles [currentUser, userId], adminRoles, shop._id
      return shop._id

in the shop methods.

I might be completely missing something, but I don’t think we should have a factory in the main createShop Meteor method.

Spencer Norman
@spencern
Jul 08 2015 23:25
Looking closer, it seems like maybe the shop tests and methods just aren’t finished yet.