--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: service
comment: 
- !ruby/struct:SM::Flow::P 
  body: This helper allows the usage of different payment integrations through a single form helper. Payment integrations are the type of service where the user is redirected to the secure site of the service, like Paypal or Chronopay.
- !ruby/struct:SM::Flow::P 
  body: The helper creates a scope around a payment service helper which provides the specific mapping for that service.
- !ruby/struct:SM::Flow::VERB 
  body: " &lt;% payment_service_for 1000, 'paypalemail@mystore.com',\n                              :amount =&gt; 50.00,\n                              :currency =&gt; 'CAD',\n                              :service =&gt; :paypal,\n                              :html =&gt; { :id =&gt; 'payment-form' } do |service| %&gt;\n\n   &lt;% service.customer :first_name =&gt; 'Cody',\n                      :last_name =&gt; 'Fauser',\n                      :phone =&gt; '(555)555-5555',\n                      :email =&gt; 'codyfauser@gmail.com' %&gt;\n\n   &lt;% service.billing_address :city =&gt; 'Ottawa',\n                             :address1 =&gt; '21 Snowy Brook Lane',\n                             :address2 =&gt; 'Apt. 36',\n                             :state =&gt; 'ON',\n                             :country =&gt; 'CA',\n                             :zip =&gt; 'K1J1E5' %&gt;\n\n   &lt;% service.invoice '#1000' %&gt;\n   &lt;% service.shipping '0.00' %&gt;\n   &lt;% service.tax '0.00' %&gt;\n\n   &lt;% service.notify_url url_for(:only_path =&gt; false, :action =&gt; 'notify') %&gt;\n   &lt;% service.return_url url_for(:only_path =&gt; false, :action =&gt; 'done') %&gt;\n   &lt;% service.cancel_return_url 'http://mystore.com' %&gt;\n &lt;% end %&gt;\n"
full_name: ActiveMerchant::Billing::Integrations::ActionViewHelper#payment_service_for
is_singleton: false
name: payment_service_for
params: (order, account, options = {}, &proc) {|service| ...}
visibility: public
