HI
I know this isn't good practice and certainly not what rails is all
about but is this possible. I need to customize my CRM to use stripe
which it doesn't support at present.the CRM is written in Ruby and has a
number of rhtml pages. Can I add my own display page of html.erb
extension to these pages to receive a variable on one of the CRM's
existing pages written as: <%= (basket.to_f_withvat).to_money %> On
this stand alone page I can then assign this variable: 'basket_total
(basket.to_f_withvat).to_money' and then use this to pay with the Stripe
Gateway as below
begin
charge = Stripe::Charge.create(
:amount => basket_total, # This is your value as a variable.
:currency => "usd",
:card => token,
:description =>
"payinguser-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org"
---- etc
Again I know this isn't what RoR and MVC is all about, but it's the only
way I can think of doing this.
Thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/4392379fe12bc4f20fa303a40ae136da%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.