File tree Expand file tree Collapse file tree 1 file changed +2
-22
lines changed
app/code/Magento/Paypal/Model Expand file tree Collapse file tree 1 file changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -676,28 +676,8 @@ public function assignData(\Magento\Framework\DataObject $data)
676
676
return $ this ;
677
677
}
678
678
679
- if (!empty ($ additionalData [ExpressCheckout::PAYMENT_INFO_TRANSPORT_TOKEN ])) {
680
- $ this ->getInfoInstance ()
681
- ->setAdditionalInformation (
682
- ExpressCheckout::PAYMENT_INFO_TRANSPORT_TOKEN ,
683
- $ additionalData [ExpressCheckout::PAYMENT_INFO_TRANSPORT_TOKEN ]
684
- );
685
- }
686
-
687
- if (!empty ($ additionalData [ExpressCheckout::PAYMENT_INFO_TRANSPORT_PAYER_ID ])) {
688
- $ this ->getInfoInstance ()
689
- ->setAdditionalInformation (
690
- ExpressCheckout::PAYMENT_INFO_TRANSPORT_PAYER_ID ,
691
- $ additionalData [ExpressCheckout::PAYMENT_INFO_TRANSPORT_PAYER_ID ]
692
- );
693
- }
694
-
695
- if (!empty ($ additionalData [ExpressCheckout::PAYMENT_INFO_TRANSPORT_BILLING_AGREEMENT ])) {
696
- $ this ->getInfoInstance ()
697
- ->setAdditionalInformation (
698
- ExpressCheckout::PAYMENT_INFO_TRANSPORT_BILLING_AGREEMENT ,
699
- $ additionalData [ExpressCheckout::PAYMENT_INFO_TRANSPORT_BILLING_AGREEMENT ]
700
- );
679
+ foreach ($ additionalData as $ key => $ value ) {
680
+ $ this ->getInfoInstance ()->setAdditionalInformation ($ key , $ value );
701
681
}
702
682
return $ this ;
703
683
}
You can’t perform that action at this time.
0 commit comments