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
Stephen Paul Weber created
lib/plan.rb | 2 +-
test/test_helper.rb | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
@@ -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
@@ -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: {