update email

This commit is contained in:
franknstayn
2021-09-15 20:02:51 +08:00
parent d1f5d38480
commit 72773a517a
2 changed files with 2 additions and 3 deletions

View File

@@ -366,7 +366,7 @@ class PaypalController extends Controller
} }
if ($other_email[0] != null) { if ($other_email[0] != null) {
$other_email = implode(", ", $other_email); $other_email = implode(", ", array_filter($other_email, function($value) { return !is_null($value) && $value !== ''; }));
$email_cc = "orders@crewsportswear.com" . "," . $other_email; $email_cc = "orders@crewsportswear.com" . "," . $other_email;
} else { } else {
$email_cc = "orders@crewsportswear.com"; $email_cc = "orders@crewsportswear.com";

View File

@@ -36,7 +36,7 @@ return [
// sandbox // sandbox
// 'paypal' => [ // 'paypal' => [
// 'client_id' => 'AQuz-HKzQiL7FygkG8skSekaWf-RP6Rgj4f1XeX1Ghp86bUFj7tQXVT1xbpluu5_WCGRbQpOVGtlJKVB', // 'client_id' => 'AQuz-HKzQiL7FygkG8skSekaWf-RP6Rgj4f1XeX1Ghp86bUFj7tQXVT1xbpluu5_WCGRbQpOVGtlJKVB',
// 'secret' => 'EJAMKxQsl-mFkL_4J_90cvTamYfcsgswqgIxz9wQPiRAwJ6sy_wNsttMlmrXIpxI96JpYzdMXkLCHAPz' // 'secret' => 'EJAMKxQsl-mFkL_4J_90cvTamYfcsgswqgIxz9wQPiRAwJ6sy_wNsttMlmrXIpxI96JpYzdMXkLCHAPz'
// ], // ],
@@ -45,5 +45,4 @@ return [
'client_id' => 'AUqBUFW5lfyYmrlBtFZA3RNw45sttM3ltbvS_d4qCVBMrkcMG9rEeivGvtNFSy8XTiEp50YyQ6khKxbq', 'client_id' => 'AUqBUFW5lfyYmrlBtFZA3RNw45sttM3ltbvS_d4qCVBMrkcMG9rEeivGvtNFSy8XTiEp50YyQ6khKxbq',
'secret' => 'ELlnuiupoFKwGUSc2g5j-sD1EmsvKpdhth1gFV7njpfvyNtKsK8WwIKUMOS0ehJcRatV865eMhfgsnd_' 'secret' => 'ELlnuiupoFKwGUSc2g5j-sD1EmsvKpdhth1gFV7njpfvyNtKsK8WwIKUMOS0ehJcRatV865eMhfgsnd_'
], ],
]; ];