Commits
Thomas Tornevall authored 40565a2ec35
WOO-936 Solved bugs caused by the new way of handling the gateway with uuids instead of the original id. * $paymentMethodInformation is now nullable at class level so it can exist, but be nulled. * Changed the way $this->id in ResursDefault is set and handled, since it is more or less multidimensional. * canInitializeGateway is built on checks on either the PaymentMethod from ecom, or an existing order (if one of them is filled, the gateway can pass through the initializer). * Added getProperGatewayId is built on the "canInitialize" since it is not only used to instantiate the gateway in the checkout, but also as a part of the order view. * Updated get_title to reflect the correct payment method or title. * Updated filter handler for metaboxes, as they should not be active on orders that does not belong to Resurs. * Added Metadata::isValidResursPayment