| Conditions | 2 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function resolve(OrderInterface $order, array $applePayData): void |
||
| 27 | { |
||
| 28 | $appleShippingAddress = $this->addressResolver->resolve($applePayData['shippingContact']); |
||
| 29 | $appleBillingAddress = $this->addressResolver->resolve($applePayData['billingContact']); |
||
| 30 | |||
| 31 | try { |
||
| 32 | $order->setShippingAddress($appleShippingAddress); |
||
|
|
|||
| 33 | $order->setBillingAddress($appleBillingAddress); |
||
| 34 | } catch (\Exception $e) { |
||
| 35 | throw new \Exception(\sprintf('Some error with create address to order')); |
||
| 36 | } |
||
| 39 |