Created
September 18, 2010 15:51
-
-
Save aquajach/585779 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% payment_service_for @order_id, @seller_account_email, | |
:amount => @total_price, | |
:currency => @currency, | |
:service => 'paypal', | |
:html => { :id => 'my-form' } do |service| %> | |
<% service.customer :first_name => @customer.first_name, | |
:last_name => @customer.last_name, | |
:phone => @customer.phone, | |
:email => @customer.email %> | |
<% service.billing_address :city => @billing_address.city, | |
:address1 => @billing_address.address1, | |
:address2 => @billing_address.address2, | |
:state => @billing_address.state, | |
:country => @billing_address.country, | |
:zip => @billing_address.zip, | |
:phone => @billing_address.phone %> | |
<% service.invoice @invoice %> | |
<% service.quantity @quantity %> | |
<% service.notify_url url_for(:only_path => false, :controller => | |
'notify', :action => 'paypal' %> | |
<% service.return_url url_for(:only_path => false, :action => 'paid') %> | |
<% service.cancel_return_url 'http://example.com' %> | |
<%= submit_tag "Submit" %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment