These are chat archives for reactioncommerce/reaction

26th
Dec 2017
Loz
@lozGemachet_twitter
Dec 26 2017 03:57
Hello everyone, I'm trying to get some properties of the paymentMethod in the order doc object.
doc.billing.paymentMethod.transactionId
gives back an undefined error.
Brent Hoover
@zenweasel
Dec 26 2017 04:12
what payment type are you using?
Also, billing is an array
so it should be doc.billing[0].paymentMethod.transactionId
It would be 0 in a single-shop scenario, otherwise one billing record per shop on the order
Loz
@lozGemachet_twitter
Dec 26 2017 04:15
I'm using autharize.net for now. I'll try using a 0. Thanks!
Loz
@lozGemachet_twitter
Dec 26 2017 04:29
Another question... how can I add settings for my plugin (to be set by the admin) like a key to our API sytem that will be used in the plugin.
Loz
@lozGemachet_twitter
Dec 26 2017 04:53

so it should be doc.billing[0].paymentMethod.transactionId

Thanks, that worked.

Michael Jenny
@prinzdezibel
Dec 26 2017 11:07
@lozGemachet_twitter Have a look into the payments-example plugin in '/imports/plugins/included'. It includes an example for admin settings.
José Luis Di Biase
@josx
Dec 26 2017 15:03
hey! is there any way or executing via hook something after the logout?
Anton Kudris
@jodaka
Dec 26 2017 19:06

This page doesn't load content
https://docs.reactioncommerce.com/reaction-docs/master/requirements

Error in console
WARNING: npm peer requirements (for reactrouter:react-router-ssr) not installed:

Michael Jenny
@prinzdezibel
Dec 26 2017 19:12
@josx have you seen http://docs.meteor.com/api/accounts-multi.html#AccountsCommon-onLogout ?
e.g.
Accounts.onLogout(() => {
  console.log("onLogout")
});
@jodaka Where is this link from? Looks like a link to an outdated page.
Anton Kudris
@jodaka
Dec 26 2017 20:17
@prinzdezibel it's from the main github page https://github.com/reactioncommerce/reaction
Loz
@lozGemachet_twitter
Dec 26 2017 20:29
@prinzdezibel Thanks, can you please point to the docs on what I need to do to have the settings added to UI?
Michael Jenny
@prinzdezibel
Dec 26 2017 20:32
@lozGemachet_twitter you mean the settings from the example payment plugin? That's already installed by default.
Loz
@lozGemachet_twitter
Dec 26 2017 20:33
@prinzdezibel I mean how to add my own settings in the UI. the sample has a lot of files I don't know what I need to copy from there..
Michael Jenny
@prinzdezibel
Dec 26 2017 20:36
Michael Jenny
@prinzdezibel
Dec 26 2017 20:49
@jodaka thanks. will change that.