We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb8af07 commit ae0d143Copy full SHA for ae0d143
modules/ppcp-wc-gateway/src/WCGatewayModule.php
@@ -1023,7 +1023,7 @@ private function register_contact_handlers(): void {
1023
$email = $wc_order->get_meta( PayPalGateway::CONTACT_EMAIL_META_KEY );
1024
$phone = $wc_order->get_meta( PayPalGateway::CONTACT_PHONE_META_KEY );
1025
1026
- if ( $email && is_string( $email ) ) {
+ if ( $email && is_email( $email ) ) {
1027
$wc_order->set_billing_email( $email );
1028
}
1029
if ( $phone && is_string( $phone ) ) {
0 commit comments