monthly_price is in 10000ths of a dollar, not 1000ths

Stephen Paul Weber created

Change summary

lib/plan.rb         | 2 +-
test/test_helper.rb | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)

Detailed changes

lib/plan.rb 🔗

@@ -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

test/test_helper.rb 🔗

@@ -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: {