Skip to content

Commit faba021

Browse files
committed
fix cp sync controller
1 parent 1bcdeda commit faba021

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/controllers/SyncController.php

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ class SyncController extends Controller
2222
public function actionAll(): YiiResponse
2323
{
2424
Plugin::getInstance()->getProducts()->syncAllProducts();
25+
Plugin::getInstance()->getPrices()->syncAllPrices();
26+
Plugin::getInstance()->getSubscriptions()->syncAllSubscriptions();
27+
Plugin::getInstance()->getCustomers()->syncAllCustomers();
28+
Plugin::getInstance()->getPaymentMethods()->syncAllPaymentMethods();
29+
Plugin::getInstance()->getInvoices()->syncAllInvoices();
2530

2631
return $this->asSuccess(Craft::t('stripe', 'Stripe Products, Prices, Subscriptions, Customers, Invoices and Payment Methods successfully synced'));
2732
}

0 commit comments

Comments
 (0)