42, 'page' => 2, ], $service->payload(42, ['page' => 2]), 'The proxy request must use the original unsigned parameter style'); customerCenterProxyAssertSame( 'https://uniuser.jzvisa.com/home/customer_center/applications', $service->endpoint('https://uniuser.jzvisa.com/home/users/userLogin', 'applications'), 'The proxy endpoint must stay on the configured unified API host' ); customerCenterProxyAssertSame( 'https://uniuser.jzvisa.com/home/customer_center/applicants', $service->endpoint('https://uniuser.jzvisa.com/home/users/userLogin/', 'applicants'), 'The proxy endpoint must accept the trailing slash used by the site configuration' ); customerCenterProxyAssertSame( '', $service->endpoint('https://example.com/unexpected', 'applications'), 'Unexpected user API URLs must fail closed' ); echo "Customer center proxy self-check passed\n";