PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk All 48 releases
← All changes | app/Http/Controllers/FrontendControllers/CustomerSubscriptionController.php +21 -0 1.6.0 → 1.6.5 View file →
@@ -136,8 +136,9 @@
136 136 'uuid' => $subscription->order ? $subscription->order->uuid : ''
137 137 ],
138 138 'billing_addresses' => $subscription->billing_addresses,
139 139 'recurring_amount' => $subscription->recurring_amount,
140 + 'currency' => $subscription->currency,
140 141 'can_early_pay' => EarlyPaymentFeature::canPay($subscription),
141 142 'remaining_installments' => max(0, $subscription->bill_times - $subscription->bill_count),
142 143 'card_update_url' => $subscription->url,
143 144 // Auto-charged (system) subscriptions: the saved card is charged
@@ -233,8 +234,13 @@
233 234 return $this->sendError([
234 235 'message' => $e->getMessage()
235 236 ]);
236 237 }
238 +
239 + return $this->sendSuccess([
240 + 'status' => 'success',
241 + 'message' => __('Payment method updated successfully', 'fluent-cart')
242 + ]);
237 243 }
238 244
239 245 return $this->sendError([
240 246 'message' => __('Could not update payment method', 'fluent-cart')
@@ -280,8 +286,13 @@
280 286 return $this->sendError([
281 287 'message' => $e->getMessage()
282 288 ]);
283 289 }
290 +
291 + return $this->sendSuccess([
292 + 'status' => 'success',
293 + 'message' => __('Plan created successfully', 'fluent-cart')
294 + ]);
284 295 }
285 296
286 297 return $this->sendError([
287 298 'message' => __('Could not get or create plan', 'fluent-cart')
@@ -334,8 +345,13 @@
334 345 return $this->sendError([
335 346 'message' => $e->getMessage()
336 347 ]);
337 348 }
349 +
350 + return $this->sendSuccess([
351 + 'status' => 'success',
352 + 'message' => __('Payment method switched successfully', 'fluent-cart')
353 + ]);
338 354 }
339 355
340 356 return $this->sendError([
341 357 'message' => __('Could not switch payment method', 'fluent-cart')
@@ -390,8 +406,13 @@
390 406 return $this->sendError([
391 407 'message' => $e->getMessage()
392 408 ]);
393 409 }
410 +
411 + return $this->sendSuccess([
412 + 'status' => 'success',
413 + 'message' => __('Subscription switch confirmed successfully', 'fluent-cart')
414 + ]);
394 415 }
395 416
396 417 return $this->sendError([
397 418 'message' => __('Could not confirm subscription switch', 'fluent-cart')