You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (method_exists($order, $functionName)){ // WC v3
return (string)$order->{$functionName}();
} else { // WC v2
return (string)$order->{$property};
}
}
This function should
check if the return value is empty string "", then do not return empty string. Because it may cause issue if billing_email is empty string, Snap API will reject w/ msg "customer_details.email format is invalid"
Enhancement needed to prevent that issue.
Reporting merchant: G019146562 NextCool
The text was updated successfully, but these errors were encountered:
SNAP-Woocommerce/class/class.midtrans-utils.php
Lines 35 to 42 in c1be238
This function should
""
, then do not return empty string. Because it may cause issue ifbilling_email
is empty string, Snap API will reject w/ msg"customer_details.email format is invalid"
Enhancement needed to prevent that issue.
Reporting merchant: G019146562 NextCool
The text was updated successfully, but these errors were encountered: