From 66479d3d1ba305a657e77310b0ec086d71dad7fc Mon Sep 17 00:00:00 2001 From: travoltron Date: Mon, 15 Aug 2016 00:54:01 -0400 Subject: [PATCH] Formatting for last minute check --- src/Commands/CreatePlan.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/CreatePlan.php b/src/Commands/CreatePlan.php index 30c1a51..3dbcee9 100644 --- a/src/Commands/CreatePlan.php +++ b/src/Commands/CreatePlan.php @@ -85,7 +85,7 @@ public function handle() $this->comment('Plan details:'); $this->comment('Name: '.$data['name']); $this->comment('ID: '.$data['id']); - $this->comment('Amount: $'.sprintf("%.2f", $data['amount']).' ('.strtoupper($data['currency']).')'); + $this->comment('Amount: $'.sprintf("%.2f", ($data['amount']/100)).' ('.strtoupper($data['currency']).')'); $this->comment($data['interval_count'] == 1?'Bills every '.$data['interval'].'.':'Bills every '.$data['interval_count'].' '.str_plural($data['interval']).'.'); $this->comment(($data['trial_period_days'] == 0)?'There is no trial period for this plan.':'Trial period lasts for '.$data['trial_period_days'].' days.'); $this->comment('Appears on statement as: '.$data['statement_descriptor']);