~singpolyma/sgx-jmp

35bce210a2bb145381cd5d53c0db1d7cc48676ab — Stephen Paul Weber 2 years ago 4922e6b
monthly_price is in 10000ths of a dollar, not 1000ths
2 files changed, 3 insertions(+), 3 deletions(-)

M lib/plan.rb
M test/test_helper.rb
M lib/plan.rb => lib/plan.rb +1 -1
@@ 21,7 21,7 @@ class Plan
	end

	def monthly_price
		BigDecimal.new(@plan[:monthly_price]) / 1000
		BigDecimal.new(@plan[:monthly_price]) / 10000
	end

	def merchant_account

M test/test_helper.rb => test/test_helper.rb +2 -2
@@ 57,7 57,7 @@ CONFIG = {
		{
			name: "test_usd",
			currency: :USD,
			monthly_price: 1000
			monthly_price: 10000
		},
		{
			name: "test_bad_currency",


@@ 66,7 66,7 @@ CONFIG = {
		{
			name: "test_cad",
			currency: :CAD,
			monthly_price: 1000
			monthly_price: 10000
		}
	],
	braintree: {