Merge pull request #16496 from mattwire/billingsamecheckboxchange
[civicrm-core.git] / CRM / Core / Payment / PayPalImpl.php
index 2b971e51563f38e0baef28c76267486f24f9304d..cb71dbd438d304f92465b147ec632bda2459cf9e 100644 (file)
@@ -303,9 +303,9 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment {
       'token' => 'token',
       'payer_status' => 'payerstatus',
       'payer_id' => 'payerid',
-      'first_name' => 'firstname',
-      'middle_name' => 'middlename',
-      'last_name' => 'lastname',
+      'billing_first_name' => 'firstname',
+      'billing_middle_name' => 'middlename',
+      'billing_last_name' => 'lastname',
       'street_address' => 'shiptostreet',
       'supplemental_address_1' => 'shiptostreet2',
       'city' => 'shiptocity',
@@ -939,7 +939,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment {
         't3' => ucfirst(substr($params['frequency_unit'], 0, 1)),
         'src' => 1,
         'sra' => 1,
-        'srt' => CRM_Utils_Array::value('installments', $params),
+        'srt' => $params['installments'] ?? NULL,
         'no_note' => 1,
         'modify' => 0,
       ];