Hello, i'm trying to implement stripe on my prestashop, all the payment process is ok, but when i try to see the order from backoffice i get error 500, with debug enabled it gives me
Class 'Stripe\Service\CoreServiceFactory' not found
prestashop version is 1.7.6.8 and PHP 7.2.34
stacktrace:
Symfony\Component\Debug\Exception\ClassNotFoundException:
Attempted to load class "CoreServiceFactory" from namespace "Stripe\Service".
Did you forget a "use" statement for another namespace?
at modules/stripe_official/vendor/stripe/stripe-php/lib/StripeClient.php:72
at Stripe\StripeClient->__get('disputes')
(modules/stripe_official/classes/StripeDispute.php:46)
at StripeDispute->getAllDisputes()
(modules/stripe_official/classes/StripeDispute.php:51)
at StripeDispute->orderHasDispute('ch_1IdecPJi0qnrey3K9bLOqi6s')
(modules/stripe_official/stripe_official.php:1359)
at Stripe_official->hookDisplayAdminOrderContentOrder(array('order' => object(Order), 'products' => array(array('id_order_detail' => '11', 'id_order' => '8', 'id_order_invoice' => '2', 'id_warehouse' => '0', 'id_shop' => '1', 'product_id' => '20', 'product_attribute_id' => '45', 'id_customization' => '0', 'product_name' => 'stan smith - Numero : 38- Colore : rosso', 'product_quantity' => '1', 'product_quantity_in_stock' => '1', 'product_quantity_refunded' => '0', 'product_quantity_return' => '0', 'product_quantity_reinjected' => '0', 'product_price' => 110.0, 'reduction_percent' => '0.00', 'reduction_amount' => '0.000000', 'reduction_amount_tax_incl' => '0.000000', 'reduction_amount_tax_excl' => '0.000000', 'group_reduction' => '0.00', 'product_quantity_discount' => '0.000000', 'product_ean13' => '', 'product_isbn' => '', 'product_upc' => '', 'product_reference' => '', 'product_supplier_reference' => '', 'product_weight' => '0.000000', 'id_tax_rules_group' => '2', 'tax_computation_method' => '0', 'tax_name' => '', 'tax_rate' => 10.0, 'ecotax' => '0.000000', 'ecotax_tax_rate' => '0.000', 'discount_quantity_applied' => '0', 'download_hash' => '', 'download_nb' => '0', 'download_deadline' => '0000-00-00 00:00:00', 'total_price_tax_incl' => '121.000000', 'total_price_tax_excl' => '110.000000', 'unit_price_tax_incl' => '121.000000', 'unit_price_tax_excl' => '110.000000', 'total_shipping_price_tax_incl' => '0.000000', 'total_shipping_price_tax_excl' => '0.000000', 'purchase_supplier_price' => '0.000000', 'original_product_price' => '110.000000', 'original_wholesale_price' => '0.000000', 'id_product' => '20', 'id_supplier' => '0', 'id_manufacturer' => '3', 'id_category_default' => '12', 'id_shop_default' => '1', 'on_sale' => '0', 'online_only' => '0', 'ean13' => '', 'isbn' => '', 'upc' => '', 'quantity' => '0', 'minimal_quantity' => '1', 'low_stock_threshold' => null, 'low_stock_alert' => '0', 'price' => '110.000000', 'wholesale_price' => '0.000000', 'unity' => '', 'unit_price_ratio' => '0.000000', 'additional_shipping_cost' => '0.00', 'reference' => '', 'supplier_reference' => '', 'location' => '', 'width' => '0.000000', 'height' => '0.000000', 'depth' => '0.000000', 'weight' => '0.000000', 'out_of_stock' => '2', 'additional_delivery_times' => '1', 'quantity_discount' => '0', 'customizable' => '0', 'uploadable_files' => '0', 'text_fields' => '0', 'active' => '1', 'redirect_type' => '301-category', 'id_type_redirected' => '0', 'available_for_order' => '1', 'available_date' => '0000-00-00', 'show_condition' => '0', 'condition' => 'new', 'show_price' => '1', 'indexed' => '1', 'visibility' => 'both', 'cache_is_pack' => '0', 'cache_has_attachments' => '0', 'is_virtual' => '0', 'cache_default_attribute' => '45', 'date_add' => '2021-04-07 16:12:47', 'date_upd' => '2021-04-07 16:21:20', 'advanced_stock_management' => '0', 'pack_stock_type' => '3', 'state' => '1', 'image' => object(Image), 'image_size' => array(77, 45, 2, 'width="77" height="45"', 'bits' => 8, 'channels' => 3, 'mime' => 'image/jpeg'), 'current_stock' => 8, 'tax_calculator' => object(TaxCalculator), 'product_price_wt' => 121.0, 'product_price_wt_but_ecotax' => 121.0, 'total_wt' => '121.000000', 'total_price' => '110.000000', 'customizedDatas' => null, 'customizationQuantityTotal' => 0, 'id_address_delivery' => '6', 'image_tag' => '<img src="../img/tmp/product_mini_20_45.jpg?time=1617814461" alt="" class="imgm img-thumbnail" />', 'customized_product_quantity' => 0, 'quantity_refundable' => 1, 'amount_refundable' => 110.0, 'amount_refundable_tax_incl' => 121.0, 'amount_refund' => null, 'refund_history' => array(), 'return_history' => array(), 'warehouse_name' => '--', 'warehouse_location' => false, 'pack_items' => array())), 'customer' => object(Customer), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 3))
(classes/Hook.php:970)
at HookCore::coreCallHook(object(Stripe_official), 'hookdisplayAdminOrderContentOrder', array('order' => object(Order), 'products' => array(array('id_order_detail' => '11', 'id_order' => '8', 'id_order_invoice' => '2', 'id_warehouse' => '0', 'id_shop' => '1', 'product_id' => '20', 'product_attribute_id' => '45', 'id_customization' => '0', 'product_name' => 'stan smith - Numero : 38- Colore : rosso', 'product_quantity' => '1', 'product_quantity_in_stock' => '1', 'product_quantity_refunded' => '0', 'product_quantity_return' => '0', 'product_quantity_reinjected' => '0', 'product_price' => 110.0, 'reduction_percent' => '0.00', 'reduction_amount' => '0.000000', 'reduction_amount_tax_incl' => '0.000000', 'reduction_amount_tax_excl' => '0.000000', 'group_reduction' => '0.00', 'product_quantity_discount' => '0.000000', 'product_ean13' => '', 'product_isbn' => '', 'product_upc' => '', 'product_reference' => '', 'product_supplier_reference' => '', 'product_weight' => '0.000000', 'id_tax_rules_group' => '2', 'tax_computation_method' => '0', 'tax_name' => '', 'tax_rate' => 10.0, 'ecotax' => '0.000000', 'ecotax_tax_rate' => '0.000', 'discount_quantity_applied' => '0', 'download_hash' => '', 'download_nb' => '0', 'download_deadline' => '0000-00-00 00:00:00', 'total_price_tax_incl' => '121.000000', 'total_price_tax_excl' => '110.000000', 'unit_price_tax_incl' => '121.000000', 'unit_price_tax_excl' => '110.000000', 'total_shipping_price_tax_incl' => '0.000000', 'total_shipping_price_tax_excl' => '0.000000', 'purchase_supplier_price' => '0.000000', 'original_product_price' => '110.000000', 'original_wholesale_price' => '0.000000', 'id_product' => '20', 'id_supplier' => '0', 'id_manufacturer' => '3', 'id_category_default' => '12', 'id_shop_default' => '1', 'on_sale' => '0', 'online_only' => '0', 'ean13' => '', 'isbn' => '', 'upc' => '', 'quantity' => '0', 'minimal_quantity' => '1', 'low_stock_threshold' => null, 'low_stock_alert' => '0', 'price' => '110.000000', 'wholesale_price' => '0.000000', 'unity' => '', 'unit_price_ratio' => '0.000000', 'additional_shipping_cost' => '0.00', 'reference' => '', 'supplier_reference' => '', 'location' => '', 'width' => '0.000000', 'height' => '0.000000', 'depth' => '0.000000', 'weight' => '0.000000', 'out_of_stock' => '2', 'additional_delivery_times' => '1', 'quantity_discount' => '0', 'customizable' => '0', 'uploadable_files' => '0', 'text_fields' => '0', 'active' => '1', 'redirect_type' => '301-category', 'id_type_redirected' => '0', 'available_for_order' => '1', 'available_date' => '0000-00-00', 'show_condition' => '0', 'condition' => 'new', 'show_price' => '1', 'indexed' => '1', 'visibility' => 'both', 'cache_is_pack' => '0', 'cache_has_attachments' => '0', 'is_virtual' => '0', 'cache_default_attribute' => '45', 'date_add' => '2021-04-07 16:12:47', 'date_upd' => '2021-04-07 16:21:20', 'advanced_stock_management' => '0', 'pack_stock_type' => '3', 'state' => '1', 'image' => object(Image), 'image_size' => array(77, 45, 2, 'width="77" height="45"', 'bits' => 8, 'channels' => 3, 'mime' => 'image/jpeg'), 'current_stock' => 8, 'tax_calculator' => object(TaxCalculator), 'product_price_wt' => 121.0, 'product_price_wt_but_ecotax' => 121.0, 'total_wt' => '121.000000', 'total_price' => '110.000000', 'customizedDatas' => null, 'customizationQuantityTotal' => 0, 'id_address_delivery' => '6', 'image_tag' => '<img src="../img/tmp/product_mini_20_45.jpg?time=1617814461" alt="" class="imgm img-thumbnail" />', 'customized_product_quantity' => 0, 'quantity_refundable' => 1, 'amount_refundable' => 110.0, 'amount_refundable_tax_incl' => 121.0, 'amount_refund' => null, 'refund_history' => array(), 'return_history' => array(), 'warehouse_name' => '--', 'warehouse_location' => false, 'pack_items' => array())), 'customer' => object(Customer), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 3))
(classes/Hook.php:355)
at HookCore::callHookOn(object(Stripe_official), 'displayAdminOrderContentOrder', array('order' => object(Order), 'products' => array(array('id_order_detail' => '11', 'id_order' => '8', 'id_order_invoice' => '2', 'id_warehouse' => '0', 'id_shop' => '1', 'product_id' => '20', 'product_attribute_id' => '45', 'id_customization' => '0', 'product_name' => 'stan smith - Numero : 38- Colore : rosso', 'product_quantity' => '1', 'product_quantity_in_stock' => '1', 'product_quantity_refunded' => '0', 'product_quantity_return' => '0', 'product_quantity_reinjected' => '0', 'product_price' => 110.0, 'reduction_percent' => '0.00', 'reduction_amount' => '0.000000', 'reduction_amount_tax_incl' => '0.000000', 'reduction_amount_tax_excl' => '0.000000', 'group_reduction' => '0.00', 'product_quantity_discount' => '0.000000', 'product_ean13' => '', 'product_isbn' => '', 'product_upc' => '', 'product_reference' => '', 'product_supplier_reference' => '', 'product_weight' => '0.000000', 'id_tax_rules_group' => '2', 'tax_computation_method' => '0', 'tax_name' => '', 'tax_rate' => 10.0, 'ecotax' => '0.000000', 'ecotax_tax_rate' => '0.000', 'discount_quantity_applied' => '0', 'download_hash' => '', 'download_nb' => '0', 'download_deadline' => '0000-00-00 00:00:00', 'total_price_tax_incl' => '121.000000', 'total_price_tax_excl' => '110.000000', 'unit_price_tax_incl' => '121.000000', 'unit_price_tax_excl' => '110.000000', 'total_shipping_price_tax_incl' => '0.000000', 'total_shipping_price_tax_excl' => '0.000000', 'purchase_supplier_price' => '0.000000', 'original_product_price' => '110.000000', 'original_wholesale_price' => '0.000000', 'id_product' => '20', 'id_supplier' => '0', 'id_manufacturer' => '3', 'id_category_default' => '12', 'id_shop_default' => '1', 'on_sale' => '0', 'online_only' => '0', 'ean13' => '', 'isbn' => '', 'upc' => '', 'quantity' => '0', 'minimal_quantity' => '1', 'low_stock_threshold' => null, 'low_stock_alert' => '0', 'price' => '110.000000', 'wholesale_price' => '0.000000', 'unity' => '', 'unit_price_ratio' => '0.000000', 'additional_shipping_cost' => '0.00', 'reference' => '', 'supplier_reference' => '', 'location' => '', 'width' => '0.000000', 'height' => '0.000000', 'depth' => '0.000000', 'weight' => '0.000000', 'out_of_stock' => '2', 'additional_delivery_times' => '1', 'quantity_discount' => '0', 'customizable' => '0', 'uploadable_files' => '0', 'text_fields' => '0', 'active' => '1', 'redirect_type' => '301-category', 'id_type_redirected' => '0', 'available_for_order' => '1', 'available_date' => '0000-00-00', 'show_condition' => '0', 'condition' => 'new', 'show_price' => '1', 'indexed' => '1', 'visibility' => 'both', 'cache_is_pack' => '0', 'cache_has_attachments' => '0', 'is_virtual' => '0', 'cache_default_attribute' => '45', 'date_add' => '2021-04-07 16:12:47', 'date_upd' => '2021-04-07 16:21:20', 'advanced_stock_management' => '0', 'pack_stock_type' => '3', 'state' => '1', 'image' => object(Image), 'image_size' => array(77, 45, 2, 'width="77" height="45"', 'bits' => 8, 'channels' => 3, 'mime' => 'image/jpeg'), 'current_stock' => 8, 'tax_calculator' => object(TaxCalculator), 'product_price_wt' => 121.0, 'product_price_wt_but_ecotax' => 121.0, 'total_wt' => '121.000000', 'total_price' => '110.000000', 'customizedDatas' => null, 'customizationQuantityTotal' => 0, 'id_address_delivery' => '6', 'image_tag' => '<img src="../img/tmp/product_mini_20_45.jpg?time=1617814461" alt="" class="imgm img-thumbnail" />', 'customized_product_quantity' => 0, 'quantity_refundable' => 1, 'amount_refundable' => 110.0, 'amount_refundable_tax_incl' => 121.0, 'amount_refund' => null, 'refund_history' => array(), 'return_history' => array(), 'warehouse_name' => '--', 'warehouse_location' => false, 'pack_items' => array())), 'customer' => object(Customer), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 3))
(classes/Hook.php:907)
at HookCore::exec('displayAdminOrderContentOrder', array('order' => object(Order), 'products' => array(array('id_order_detail' => '11', 'id_order' => '8', 'id_order_invoice' => '2', 'id_warehouse' => '0', 'id_shop' => '1', 'product_id' => '20', 'product_attribute_id' => '45', 'id_customization' => '0', 'product_name' => 'stan smith - Numero : 38- Colore : rosso', 'product_quantity' => '1', 'product_quantity_in_stock' => '1', 'product_quantity_refunded' => '0', 'product_quantity_return' => '0', 'product_quantity_reinjected' => '0', 'product_price' => 110.0, 'reduction_percent' => '0.00', 'reduction_amount' => '0.000000', 'reduction_amount_tax_incl' => '0.000000', 'reduction_amount_tax_excl' => '0.000000', 'group_reduction' => '0.00', 'product_quantity_discount' => '0.000000', 'product_ean13' => '', 'product_isbn' => '', 'product_upc' => '', 'product_reference' => '', 'product_supplier_reference' => '', 'product_weight' => '0.000000', 'id_tax_rules_group' => '2', 'tax_computation_method' => '0', 'tax_name' => '', 'tax_rate' => 10.0, 'ecotax' => '0.000000', 'ecotax_tax_rate' => '0.000', 'discount_quantity_applied' => '0', 'download_hash' => '', 'download_nb' => '0', 'download_deadline' => '0000-00-00 00:00:00', 'total_price_tax_incl' => '121.000000', 'total_price_tax_excl' => '110.000000', 'unit_price_tax_incl' => '121.000000', 'unit_price_tax_excl' => '110.000000', 'total_shipping_price_tax_incl' => '0.000000', 'total_shipping_price_tax_excl' => '0.000000', 'purchase_supplier_price' => '0.000000', 'original_product_price' => '110.000000', 'original_wholesale_price' => '0.000000', 'id_product' => '20', 'id_supplier' => '0', 'id_manufacturer' => '3', 'id_category_default' => '12', 'id_shop_default' => '1', 'on_sale' => '0', 'online_only' => '0', 'ean13' => '', 'isbn' => '', 'upc' => '', 'quantity' => '0', 'minimal_quantity' => '1', 'low_stock_threshold' => null, 'low_stock_alert' => '0', 'price' => '110.000000', 'wholesale_price' => '0.000000', 'unity' => '', 'unit_price_ratio' => '0.000000', 'additional_shipping_cost' => '0.00', 'reference' => '', 'supplier_reference' => '', 'location' => '', 'width' => '0.000000', 'height' => '0.000000', 'depth' => '0.000000', 'weight' => '0.000000', 'out_of_stock' => '2', 'additional_delivery_times' => '1', 'quantity_discount' => '0', 'customizable' => '0', 'uploadable_files' => '0', 'text_fields' => '0', 'active' => '1', 'redirect_type' => '301-category', 'id_type_redirected' => '0', 'available_for_order' => '1', 'available_date' => '0000-00-00', 'show_condition' => '0', 'condition' => 'new', 'show_price' => '1', 'indexed' => '1', 'visibility' => 'both', 'cache_is_pack' => '0', 'cache_has_attachments' => '0', 'is_virtual' => '0', 'cache_default_attribute' => '45', 'date_add' => '2021-04-07 16:12:47', 'date_upd' => '2021-04-07 16:21:20', 'advanced_stock_management' => '0', 'pack_stock_type' => '3', 'state' => '1', 'image' => object(Image), 'image_size' => array(77, 45, 2, 'width="77" height="45"', 'bits' => 8, 'channels' => 3, 'mime' => 'image/jpeg'), 'current_stock' => 8, 'tax_calculator' => object(TaxCalculator), 'product_price_wt' => 121.0, 'product_price_wt_but_ecotax' => 121.0, 'total_wt' => '121.000000', 'total_price' => '110.000000', 'customizedDatas' => null, 'customizationQuantityTotal' => 0, 'id_address_delivery' => '6', 'image_tag' => '<img src="../img/tmp/product_mini_20_45.jpg?time=1617814461" alt="" class="imgm img-thumbnail" />', 'customized_product_quantity' => 0, 'quantity_refundable' => 1, 'amount_refundable' => 110.0, 'amount_refundable_tax_incl' => 121.0, 'amount_refund' => null, 'refund_history' => array(), 'return_history' => array(), 'warehouse_name' => '--', 'warehouse_location' => false, 'pack_items' => array())), 'customer' => object(Customer), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 3))
(controllers/admin/AdminOrdersController.php:1949)
at AdminOrdersControllerCore->renderView()
(classes/controller/AdminController.php:2121)
at AdminControllerCore->initContent()
(classes/controller/Controller.php:292)
at ControllerCore->run()
(classes/Dispatcher.php:515)
at DispatcherCore->dispatch()
(admin540xnc0wq/index.php:97)
![image](https://user-images.githubusercontent.com/6453067/113906231-4ddb2300-97d4-11eb-9f17-535937fef8e2.png)
![image](https://user-images.githubusercontent.com/6453067/113906301-60edf300-97d4-11eb-9cd2-cfd123dceb7e.png)
thank you in advance for your help!