The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Declare Tax, Shipping, and Handling Costs with Active Merchant + PayPal

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Vincent Woo

Posts: 30
Nickname: vwoo
Registered: Sep, 2008

Vincent Woo is a Ruby on Rails enthusiast.
Declare Tax, Shipping, and Handling Costs with Active Merchant + PayPal Posted: Oct 9, 2011 6:21 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Vincent Woo.
Original Post: Declare Tax, Shipping, and Handling Costs with Active Merchant + PayPal
Feed Title: Undefined Range
Feed URL: http://www.undefinedrange.com/categories/ruby-on-rails.rss
Feed Description: Interesting things I experience with Ruby on Rails.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Vincent Woo
Latest Posts From Undefined Range

Advertisement

I didn't see this documented anywhere but with Active Merchant + PayPal Website Payments Pro or Express, a breakdown of the order total can be specified.

gateway = ActiveMerchant::Billing::PaypalCaGateway.new(options) gateway.purchase(8475, credit_card, { :subtotal => 7500, :shipping => 0, :handling => 0, :tax => 975 })

Subtotal, shipping, handling, and tax values must all be there and they must all add up to the order total ($84.75 in this example). View the relevant code at Github

Read: Declare Tax, Shipping, and Handling Costs with Active Merchant + PayPal

Topic: Declare Tax, Shipping, and Handling Costs with Active Merchant + PayPal Previous Topic   Next Topic Topic: Do you know Ruby Doctest?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use