You will need to specify the route number Y and the bank account number if you want to directly deposit funds to account Y.
First you need to configure Active Merchant in the rails app. Use a plugin or gem:
rails plugin install git://github.com/Shopify/active_merchant.git gem 'activemerchant'
After you have installed this application, you will need to register with a gateway. Has a complete list of supported gateways https://github.com/Shopify/active_merchant/wiki/gatewayfeaturematrix
These railscasts will help you get started with Active Merchant:
http://railscasts.com/episodes/144-active-merchant-basics
http://railscasts.com/episodes/145-integrating-active-merchant
To use a bank instead of a credit card, create a new method in the order model if you follow railscast
def bank_account @bank_account ||= ActiveMerchant::Billing::Check.new( :account_holder_type=> "personal", :account_number=> "number", :account_type => "checking/savings", :name=> "name", :routing_number=> "routing_number") end end
source share