These are chat archives for reactioncommerce/reaction

20th
Feb 2015
Everest Liu
@evliu
Feb 20 2015 00:04
ahh got it, what was your game plan? i didn’t know there was another paypal standard payment method but totally fine with whatever
Ben Stocks
@bstocks
Feb 20 2015 00:07
it’s still payments standard, but a diff generation method: http://paypal.github.io/JavaScriptButtons/
i’m really just going for whatever works for now and refine as we go. broad strokes for now :)
Everest Liu
@evliu
Feb 20 2015 00:09
ahh i c, were you going to use the IPN callback URL to notify reaction of a completed transaction? just wasn’t sure how to get back to reaction to show the order conf
Ben Stocks
@bstocks
Feb 20 2015 00:10
still working my way there. I was planning to use the callback url to hook back into the workflow
Everest Liu
@evliu
Feb 20 2015 00:11
makes sense. i think i was trying express checkout because i couldn’t figure out how to redirect the user back to reaction
Aaron Judd
@aaronjudd
Feb 20 2015 00:15
should be able to expose a meteor method to handle the callback, and define the callback in routing if you go that way… I haven’t done that yet, but I’ve seen some docs I can scrounge up if you guys need it
Everest Liu
@evliu
Feb 20 2015 00:16
yea, but the issue is the user will be on paypal.com, in which i don’t think you can force a redirect after transaction complete from paypal.com back to the reaction instance
Ben Stocks
@bstocks
Feb 20 2015 00:16
I’m pretty sure that’s what the callback url attribute if for though
Aaron Judd
@aaronjudd
Feb 20 2015 00:17
I’d think you’d provide the route to the callback url, and then paypal redirects to that url after they’re done
Ben Stocks
@bstocks
Feb 20 2015 00:17
data-callback
yeah
Aaron Judd
@aaronjudd
Feb 20 2015 00:18
isn’t paypal just a joy to work with. just think of the millions of tortured developers sigh
Ben Stocks
@bstocks
Feb 20 2015 00:18
think of the developers!
Everest Liu
@evliu
Feb 20 2015 00:18
i think it doesn’t redirect, but it hits the callback URL with an IPN
from ben’s link: "On completion of a transaction you can get a payment notification (IPN) on a callback URL you specify using the callback attribute."
the callback is just for a payment notification to the reaction server
in express checkout, they allow you to specify a return url and a cancel url for after a transaction or if customer cancels
Aaron Judd
@aaronjudd
Feb 20 2015 00:21
ah.. k .. mixing my payment methods up. makes sense ( in both)
Ben Stocks
@bstocks
Feb 20 2015 00:22
hmm… can’t I just grab the IPN post data with iron router? I thought I read that somewhere...
Everest Liu
@evliu
Feb 20 2015 00:23
yea, so two different things, you’ll get the IPN notification and you can do stuff on the server, but the other thing is getting the user back to reaction
Ben Stocks
@bstocks
Feb 20 2015 00:23
ah yeah, totally. I see it now.
Everest Liu
@evliu
Feb 20 2015 00:23
otherwise i think they end up with three links after the paypal transaction on the paypal page: transaction details, return to store, and something else with paypal
yea, it sucks… they should give you the option to put in a return url… i’ve poured through a ton of paypal dev documentation, and i’m sure i’m only scratching the surface
Ben Stocks
@bstocks
Feb 20 2015 00:25
touche, paypal
Everest Liu
@evliu
Feb 20 2015 00:25
difference with express checkout is that they would actually checkout on paypal, then it doesn’t process the transaction, but pushes you back to reaction where you have a confirmation page where you can submit your order, then server side you doTransaction, get a return from paypal via server-side http request
so it’s basically flipped around, buynow you get the checkout page, then you finish on paypal, express checkout you start on paypal when you hit “checkout”, then you confirm and finish on reaction
Ben Stocks
@bstocks
Feb 20 2015 00:26
ugh, I don’t like either option
and back to research I go
Everest Liu
@evliu
Feb 20 2015 00:26
of course they don’t clearly say that anywhere… i had to use a pen and paper and diagram it out….
Ben Stocks
@bstocks
Feb 20 2015 00:26
lol
Aaron Judd
@aaronjudd
Feb 20 2015 00:26
lol - which is why I built the “pro flow” first anyhow
Everest Liu
@evliu
Feb 20 2015 00:27
i’m super not fond of the paypal options… so outdated
yea, pro flow is basically braintree… which doesn’t make sense because braintree is owned by paypal
Ben Stocks
@bstocks
Feb 20 2015 00:27
no one promised it would make sense, I suppose
Everest Liu
@evliu
Feb 20 2015 00:28
haha, yea, it was a HUGE pain trying to figure out how paypal works… and get this, there’s a cool “modal” feature where you don’t need to redirect, you get a express checkout modal just to do the transaction… buttttt… you can only use it for digital goods….
:: smacks forehead ::
modal would have been okay with express checkout, because it’s basically that last cart workflow step… and in my research, there’s no way around it, can’t fake it or anything; paypal doesn’t work in iframes
Ben Stocks
@bstocks
Feb 20 2015 00:30
I swear i’ve used an implementation when buying something that worked exactly how I want it to. now i’ve just gotta find it and see how they did it.
Everest Liu
@evliu
Feb 20 2015 00:31
yea, that would be awesome… stackoverflow hasn’t helped me at all
i got nothing else… haha, ben, you gotta work your magic, hahaha
Ben Stocks
@bstocks
Feb 20 2015 00:31
back to the drawing board i go!
Aaron Judd
@aaronjudd
Feb 20 2015 01:04
just realized I could hook the other repos into the waffle board: https://waffle.io/reactioncommerce/reaction um, duh
Ben Stocks
@bstocks
Feb 20 2015 18:55
ok so back around to express checkout for paypal integration. it looks like you can infact customize it to the level I want (not sure why I thought I couldn’t) and get a reasonably decent flow. now to test the theory...
Bogi
@boboci9
Feb 20 2015 20:20
Hi, I am getting Cannot read property 'isBillingDefault' of null and Cannot read property 'isShippingDefault' of null from the new addressBookForm template helper, everything is working correctly, this is only in the console but I thought it could be important. It only appears sometimes in the same form, not at every load even for the same data.