Skip to content

Compliance

Learn about Google Pay's implementation requirements and suggested best practices for Web applications.

Overview

The Google Pay component follows Google's official guidelines for Web implementation. This page outlines the key requirements for compliance with Google Pay's brand guidelines and API specifications.

For complete Google Pay compliance requirements, refer to the Google Pay Brand Guidelines and Google Pay API Documentation.

Technical requirements

Domain and SSL

  • HTTPS required: All Google Pay implementations must use HTTPS (localhost exempt for development).
  • Valid SSL certificate: Must have a valid SSL certificate from a recognised authority.
  • Domain whitelisting: Domain must be whitelisted in Unity Portal configuration.

Browser compatibility

  • Chrome: Chrome 61+ on all platforms.
  • Safari: Safari 12.1+ on macOS and iOS.
  • Firefox: Firefox 62+ on all platforms.
  • Edge: Edge 79+ (Chromium-based) on Windows and macOS.
  • Device requirements: User must have Google Pay configured with at least one payment method.

Google Pay account

  • Business profile: Active Google Pay Business Console account.
  • Merchant verification: Completed merchant verification process.
  • Gateway integration: Properly configured payment gateway integration.
  • Terms acceptance: Acceptance of Google Pay API Terms of Service.

Button branding requirements

RequirementDescriptionStatus
Equal prominenceGoogle Pay button presented with equal prominence to other payment methods.required
Approved stylesOnly uses Google-approved button types and colours.required
Minimum heightButton height is at least 40px.required
Maximum heightButton height does not exceed 72px.required
Logo integrityGoogle Pay logo is not distorted or modified.required
Proper spacingAdequate spacing around button (minimum 8px).required
Responsive designButton scales appropriately on all devices.required

Security and data handling

Security requirements

  • Never store sensitive payment information or raw card numbers.
  • Validate all payment tokens on your secure server.
  • Implement proper error handling and logging without exposing sensitive data.
  • Keep SSL certificates up to date.
  • Follow OWASP security guidelines.

Data handling requirements

  • Only collect necessary payment data (data minimisation).
  • Comply with applicable privacy regulations (GDPR, CCPA, etc.).
  • Maintain proper audit logging for security and debugging.
  • Handle payment tokens securely on the server side.

Pre-launch checklist

Before going live with Google Pay, ensure your implementation meets these requirements:

Technical setup

  • HTTPS enabled on all pages with Google Pay (localhost exempt for development)
  • Domain whitelisted in Unity Portal Google Pay configuration
  • Payment gateway merchant ID properly configured
  • Tested on Chrome, Safari, Firefox, and Edge
  • Comprehensive error handling for all payment scenarios

Button and branding

  • Uses Google-approved button styles and types
  • Button height between 40px and 72px
  • Google Pay button has equal prominence with other payment methods
  • Logo used correctly without modification
  • Proper capitalisation: "Google Pay" (not "GooglePay" or "Google pay")

Security

  • Valid SSL certificate from recognised authority
  • No storage of sensitive payment information or raw card numbers
  • Secure server-side processing of Google Pay tokens
  • Audit logging without exposing sensitive data
  • Privacy policy covers payment data usage

User experience

  • Responsive design across desktop, tablet, and mobile
  • Clear error messages and user guidance
  • Graceful handling when Google Pay is unavailable
  • Keyboard navigation and screen reader support
  • Loading indicators during payment processing

Testing

  • End-to-end payment testing in test environment
  • Tested on actual devices with Google Pay configured
  • All error scenarios tested and handled properly
  • Accessibility tested with screen readers

Best practices

Implementation recommendations

  • Provide fallback payment methods when Google Pay is unavailable
  • Test thoroughly after browser updates
  • Monitor Google Pay API changelog for changes
  • Implement rate limiting to prevent abuse

Monitoring and maintenance

  • Track payment success and failure rates
  • Set up alerts for unusual activity or high failure rates
  • Regularly review compliance with Google's guidelines
  • Update error handling as needed

Additional resources

For detailed compliance information, refer to Google's official documentation:

Failure to comply with Google Pay's guidelines may result in integration rejection or removal of Google Pay functionality. Regularly review Google's official documentation to ensure your implementation remains compliant.