Fix shipping preference for vaulted card button

This commit is contained in:
Alex P 2022-07-05 15:05:57 +03:00
parent fff2570124
commit 9ab091b945
3 changed files with 131 additions and 2 deletions

View file

@ -334,7 +334,8 @@ class CreateOrderEndpoint implements EndpointInterface {
$shipping_preference = $this->shipping_preference_factory->from_state(
$this->purchase_unit,
$this->parsed_request_data['context'],
WC()->cart
WC()->cart,
$this->parsed_request_data['funding_source'] ?? ''
);
try {