@@ -512,7 +512,7 @@ discard block |
||
512 | 512 | |
513 | 513 | if( $rvals['ACK'] !== 'Success' ) |
514 | 514 | { |
515 | - $msg = 'PayPal Express: method = ' . $method . ', order ID = ' . $orderid . ', response = ' . print_r( $rvals, true ); |
|
515 | + $msg = 'PayPal Express: method = '.$method.', order ID = '.$orderid.', response = '.print_r( $rvals, true ); |
|
516 | 516 | $this->getContext()->getLogger()->log( $msg, \Aimeos\MW\Logger\Base::WARN ); |
517 | 517 | |
518 | 518 | if( $rvals['ACK'] !== 'SuccessWithWarning' ) |
@@ -591,7 +591,7 @@ discard block |
||
591 | 591 | break; |
592 | 592 | } |
593 | 593 | |
594 | - $str = 'PayPal Express: order ID = ' . $invoice->getId() . ', PENDINGREASON = ' . $response['PENDINGREASON']; |
|
594 | + $str = 'PayPal Express: order ID = '.$invoice->getId().', PENDINGREASON = '.$response['PENDINGREASON']; |
|
595 | 595 | $this->getContext()->getLogger()->log( $str, \Aimeos\MW\Logger\Base::INFO ); |
596 | 596 | } |
597 | 597 | |
@@ -625,7 +625,7 @@ discard block |
||
625 | 625 | break; |
626 | 626 | |
627 | 627 | default: |
628 | - $str = 'PayPal Express: order ID = ' . $invoice->getId() . ', response = ' . print_r( $response, true ); |
|
628 | + $str = 'PayPal Express: order ID = '.$invoice->getId().', response = '.print_r( $response, true ); |
|
629 | 629 | $this->getContext()->getLogger()->log( $str, \Aimeos\MW\Logger\Base::INFO ); |
630 | 630 | } |
631 | 631 | } |
@@ -650,14 +650,14 @@ discard block |
||
650 | 650 | /* setting up the address details */ |
651 | 651 | $values['NOSHIPPING'] = $this->getConfigValue( array( 'paypalexpress.NoShipping' ), 1 ); |
652 | 652 | $values['ADDROVERRIDE'] = $this->getConfigValue( array( 'paypalexpress.AddrOverride' ), 0 ); |
653 | - $values['PAYMENTREQUEST_0_SHIPTONAME'] = $orderAddressDelivery->getFirstName() . ' ' . $orderAddressDelivery->getLastName(); |
|
654 | - $values['PAYMENTREQUEST_0_SHIPTOSTREET'] = $orderAddressDelivery->getAddress1() . ' ' . $orderAddressDelivery->getAddress2() . ' ' . $orderAddressDelivery->getAddress3(); |
|
653 | + $values['PAYMENTREQUEST_0_SHIPTONAME'] = $orderAddressDelivery->getFirstName().' '.$orderAddressDelivery->getLastName(); |
|
654 | + $values['PAYMENTREQUEST_0_SHIPTOSTREET'] = $orderAddressDelivery->getAddress1().' '.$orderAddressDelivery->getAddress2().' '.$orderAddressDelivery->getAddress3(); |
|
655 | 655 | $values['PAYMENTREQUEST_0_SHIPTOCITY'] = $orderAddressDelivery->getCity(); |
656 | 656 | $values['PAYMENTREQUEST_0_SHIPTOSTATE'] = $orderAddressDelivery->getState(); |
657 | 657 | $values['PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE'] = $orderAddressDelivery->getCountryId(); |
658 | 658 | $values['PAYMENTREQUEST_0_SHIPTOZIP'] = $orderAddressDelivery->getPostal(); |
659 | 659 | } |
660 | - catch( \Exception $e ) { ; } // If no address is available |
|
660 | + catch( \Exception $e ) {; } // If no address is available |
|
661 | 661 | |
662 | 662 | |
663 | 663 | $lastPos = 0; |
@@ -665,12 +665,12 @@ discard block |
||
665 | 665 | { |
666 | 666 | $price = $product->getPrice(); |
667 | 667 | $lastPos = $product->getPosition() - 1; |
668 | - $deliveryPrices = $this->addPrice( $deliveryPrices, (clone $price)->setValue( '0.00' ) ); |
|
668 | + $deliveryPrices = $this->addPrice( $deliveryPrices, ( clone $price )->setValue( '0.00' ) ); |
|
669 | 669 | |
670 | - $values['L_PAYMENTREQUEST_0_NUMBER' . $lastPos] = $product->getId(); |
|
671 | - $values['L_PAYMENTREQUEST_0_NAME' . $lastPos] = $product->getName(); |
|
672 | - $values['L_PAYMENTREQUEST_0_QTY' . $lastPos] = $product->getQuantity(); |
|
673 | - $values['L_PAYMENTREQUEST_0_AMT' . $lastPos] = $this->getAmount( $price, false ); |
|
670 | + $values['L_PAYMENTREQUEST_0_NUMBER'.$lastPos] = $product->getId(); |
|
671 | + $values['L_PAYMENTREQUEST_0_NAME'.$lastPos] = $product->getName(); |
|
672 | + $values['L_PAYMENTREQUEST_0_QTY'.$lastPos] = $product->getQuantity(); |
|
673 | + $values['L_PAYMENTREQUEST_0_AMT'.$lastPos] = $this->getAmount( $price, false ); |
|
674 | 674 | } |
675 | 675 | |
676 | 676 | |
@@ -678,9 +678,9 @@ discard block |
||
678 | 678 | if( ( $paymentCosts = $this->getAmount( $price ) ) > '0.00' ) |
679 | 679 | { |
680 | 680 | $lastPos++; |
681 | - $values['L_PAYMENTREQUEST_0_NAME' . $lastPos] = $this->getContext()->getI18n()->dt( 'mshop', 'Payment costs' ); |
|
682 | - $values['L_PAYMENTREQUEST_0_QTY' . $lastPos] = '1'; |
|
683 | - $values['L_PAYMENTREQUEST_0_AMT' . $lastPos] = $paymentCosts; |
|
681 | + $values['L_PAYMENTREQUEST_0_NAME'.$lastPos] = $this->getContext()->getI18n()->dt( 'mshop', 'Payment costs' ); |
|
682 | + $values['L_PAYMENTREQUEST_0_QTY'.$lastPos] = '1'; |
|
683 | + $values['L_PAYMENTREQUEST_0_AMT'.$lastPos] = $paymentCosts; |
|
684 | 684 | } |
685 | 685 | |
686 | 686 | |
@@ -699,7 +699,7 @@ discard block |
||
699 | 699 | $values['L_SHIPPINGOPTIONNAME0'] = $orderServiceDeliveryItem->getName(); |
700 | 700 | $values['L_SHIPPINGOPTIONISDEFAULT0'] = 'true'; |
701 | 701 | } |
702 | - catch( \Exception $e ) { ; } // If no delivery service is available |
|
702 | + catch( \Exception $e ) {; } // If no delivery service is available |
|
703 | 703 | |
704 | 704 | |
705 | 705 | $price = $orderBase->getPrice(); |