Google Pay does not work directly inside WebViews due to security restrictions. This guide will help you configure your app to properly handle Google Pay payments.
First, add the following configuration to enable a special pop-up mechanism:
{
"Regex_Social_Login": {
"Regex_Social_Login_Opening_Method": "popup",
"Regex_Social_Login_Rules": [
{
"Regex": ""
}
]
}
}
Update the configuration to specifically target Google Pay URLs:
{
"Regex_Social_Login": {
"Regex_Social_Login_Opening_Method": "popup",
"Regex_Social_Login_Rules": [
{
"Regex": ".*pay\\.google.*"
}
]
}
}
You can expand the configuration to support multiple payment platforms:
{
"Regex_Social_Login": {
"Regex_Social_Login_Opening_Method": "popup",
"Regex_Social_Login_Rules": [
{
"Regex": ".*pay\\.google.*"
},
{
"Regex": ".*paypal.*"
},
{
"Regex": ".*venmo.*"
}
]
}
}
Ensure that payment URLs are opened outside the app:
{
"Regex_Internal_External": {
"Internal_External_Rules": [
{
"Regex": ".*pay\\.google.*",
"Internal": false
},
{
"Regex": ".*venmo.*",
"Internal": false
},
{
"Regex": ".*paypal.*",
"Internal": false
}
]
}
}