When overriding the express_token= method, you set the express_token "attribute" via the self[] method. This is not the best way.
According to the Rails manuals it is better to use write_attribute when overriding an attribute setter (and read_attribute when overriding the getter)
Great cast otherwise ;)
Hi Ryan,
thank you very much for another useful and interesting Railscast!
Keep up the good work.
Greetings from Austria,
Udo
Hi, Ryan
Thanks for your work. Can't wait the end of work day to watch it ;)
However it's 6 screen casts regarding payment gateways. How much more you planning to spend on it, when we will see your screencasts with another rails tips?
Thanks
@Bertg, thanks for the correction, I'll update the code in the show notes.
@Igor, This is the last cast on e-commerce for a little while. Expect some more regular episodes over the next few weeks.
Hi Ryan,
Thanks again for the screen cast - very useful.
Still new to Ruby and Rails and had a quick question. If the purchase fails it goes to a failure page rather than rendering the new action again. Should this be changed? I'm not sure if this is a bad practice or if it was just to simplify it for the screencast.
No screencast on recurring billing? That's too bad. Anyway, love the series. Thanks a lot!
@ron and @Scott,
Ryan said that he would that in previous episodes! =D
AWESOME!!!!!!!
Recurring billing still to come...
awwwwwwww
It is my understanding that (like mentioned in episode 145) informations (even more so for sensitive ones) should be gathered in HTTPS... I'm not sure if i missed an episode where the process of doing just that is explained but wouldn't it be a good episode subject otherwise ?
Great screencasts, btw ! keep up the great work !
Ryan, Just wanted to thank you for all the recent merchant casts, have been very helpful for setting up my shop. Keep up the good work :)
I'm missing the boat on something. How do I add the shipping information into my orders table when using the express pay. I have the first and last name just like the screen cast. But when I try and add the shipping address or any of the shipping information, its not updating the orders table.
Ryan. Thanks for the great series on Active Merchant and PayPal.
You use current_cart.build_order.price_in_cents in the controller to setup your response. And then the request cycle goes to paypal and then returns and then im losing the cart_id for the order.
Could someone check that?
Great series of casts Ryan! VERY helpful!
Thanks a lot Ryan! But why not ending in great style with a recurring bill episode? :(
Was one of the most important features!
Thanks aniway :)
I found a handy pdf to get you started with credit card processing:
http://jumpstartcc.com/
Most of the things were already mentiond by ryan, but its a nice overview.
There have been a lot of ecommerce related Railscasts lately, but I think that is because it is a complex topic. I'll throw in a +1 for recurring billing.
Thanks for all of your work. Railscasts are one of the best resources for the community and they are free. Thanks again.
I had to do PayPal recurring payment before the Railscast becomes available. So I put together an extention and wrote a blog post about it.
http://rayvinly.com/articles/2009/02/20/paypal-recurring-billing-with-activemerchant-in-ruby-on-rails/
I hope it works out you all who need to do similar things. There are stuff you can configure. ActiveMerchant is real nice.
Feedback will be appreciated.
I'm trying to get this code to work from the git repo but its complaining about current_cart in line_items_controller.rb the create on line 4. any ideas?
Any plans for authorize.net processing ryan? I'm trying to get it work but just can't was hoping you might give some insight.
great screencast, got me most of the way. i still have questions about integrating a list of ordered products on the confirmation page (after going to paypal).
i can't seem to get the cart line items to list on the confirm page. (this is the Orders -> new.html.erb page).
specifically i thought i would be able to access the cart thru @orders.cart.line_items, but i'm obviously missing something. in fact the @orders.cart_id seems nil.
does this get lost in the Express situation?
second thoughts...
if i'm understanding this correctly, i can get all the order details (and items) thru the returned express_token. (since i'm actually sending PaymentDetailItems in my purchase).
question: can i access the token details directly on my orders new ERB? or is there a better way to do this?
oh, i just included the current cart as in the new method of the OrderController. silly me...
+ eight gazzilion billon for recurring billing, Ryan this !#*$ is the bomb.
Looking forward to the recurring billing episode. Many thanks for the series on Paypal.
I got the following error, when i followed your code, please assist me..
Thanks
NameError in OrdersController#express
undefined local variable or method `products_url' for #<OrdersController:0xb6933454>
RAILS_ROOT: /home/shanmuga/shapero/shapero
Application Trace | Framework Trace | Full Trace
app/controllers/orders_controller.rb:6:in `express'
Request
Parameters:
None
How can I use Active Merchant to set Express Checkout's taxamt field? I need to set tax on orders shipping to my state.
Thanks!
[url=http://www.rs2guru.com/]wedding invitations[/url]
[url=http://www.rs2guru.com/]wedding invitation[/url]
[url=http://www.rs2guru.com/]unique wedding invitations[/url]
Thank you so much for this series! It helped me out an incredible amount. This saved me days of researching and learning. Thank you! :)
Before considering PayPal, consider this:
http://blog.apparentsoft.com/business/124/is-paypal-good-for-your-microisv-business-a-short-paypal-horror-story/
Hi Ryan,
There is one issue.
When you are redirecting to PayPal sandbox for Payment, you are not showing the amount which User is going to PAY ?
How can we show the AMOUNT on PayPal site which user is going to PAY ?
Thanks,
Bijesh
It is long lifespan, fast weld, anti-oxidize and never fade in color.
The heater is made of stainless steel with different kinds of shape, such as D shape, round shape, square shape and so on.
A heater will keep you warm well into the fall and help make your entertainment events cozy and having comfortable days during the winter
These products are been exporting to Europe, United States, Asia, the Middle East, Russia and Latin America countries. We are expecting more partners from all over the world.
Teamed with excellent scientists and engineers, we can offer you one-stop solution package for PV system design, installation consulting, purchase, delivery,etc.
specializing in production of hydraulic valves, hydraulic systems and hydraulic components.
In 2006, we renamed our company into e-Sun Industrial Co., Ltd in Hong Kong, which is known as Pearl of the Orient. After years of developing, we have already set up our production plants separately in the North of China and the South of China to meet the rapid developing demands.
Our ceramic sanitary ware factory was found in 2002, with an area of over 40000m2. We've been concentrating on production of best quality ceramic sanitary ware. We've been enjoying high reputation throughout the word, especially in Europe market
Awesome, custom rspec matchers for Moonshine are in my backlog. Great informative post thanks for sharing. I really appreciate what you post. If only i could think of a plugin to actually write. I will instantly grab your rss feed to stay informed of any updates.
Fantastic Read! Looking forward to more! Bookmarked the site and will be back again!
I have always liked Outdoor movies, a child standing at the window, looked out from home to the following. Will be able to see the staff busy figure, a huge white cloth has a child hang up and soon will be able to see the movie.
Sorry to go a bit off the topic but can anybody recommend a good kitchen supplier in the United Kingdom.
Thanks for sharing your article. I really enjoyed it. I put a link to my site to here so other people can read it. My readers have about the same interets
Discount Wholesale Electronics, Wholesale Cell Phones, Electronic Gadgets and More from the Best Dropship Wholesaler
After years of developing, we have already set up our production plants separately in the North of China and the South of China to meet the rapid developing demands.
Very good post. Made me realize I was totally wrong about this issue. I figure that one learns something new everyday. Mrs Right learned her lesson! Nice, informative website by the way.






