• About
  • Privacy Policy
  • Disclaimer
  • Contact
Soft Bliss Academy
No Result
View All Result
  • Home
  • Artificial Intelligence
  • Software Development
  • Machine Learning
  • Research & Academia
  • Startups
  • Home
  • Artificial Intelligence
  • Software Development
  • Machine Learning
  • Research & Academia
  • Startups
Soft Bliss Academy
No Result
View All Result
Home Software Development

Google Pay inside sandboxed iframe for PCI DSS v4 compliance

softbliss by softbliss
June 13, 2025
in Software Development
0
Google Pay inside sandboxed iframe for PCI DSS v4 compliance
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter


If you are developing or maintaining a checkout page you might come across PCI DSS v4 which includes the following requirement under 6.4.3:

All payment page scripts that are loaded and executed in the consumer’s browser are managed as follows:
– A method is implemented to confirm that each script is authorized.
– A method is implemented to assure the integrity of each script.
– An inventory of all scripts is maintained with written business or technical justification as to why each is necessary.

One way to comply with this requirement is to use a technique like Subresource Integrity (SRI). However, the Google Pay JavaScript (pay.js) build and release process does not allow for a long-lived, stable hash required by techniques like SRI.


Using a sandboxed iframe

Using a sandboxed iframe satisfies any concerns with compliance since scripts within the iFrame will not have access to the parent DOM. See the following illustration for an example:

In this case the domain “cdn.somewhereelse.com” would load Google Pay’s pay.js JavaScript file. After a successful transaction, the inner iframe can communicate with the parent page through mechanisms like window.postMessage() if needed.

In order for Google Pay to work in all browsers we need the following 4 sandbox attribute values in addition to allow=”payment”:

To allow the iframe to execute scripts (pay.js as an example)

Allows the embedded page to create ‘child browsing contexts’. In practice, this flag enables the embedded iframe to open new tabs and windows when the user clicks a link.

If not set, fails on various occasions for browsers. If set, the iframe has access to the parents storage and cookies.

Allows forms such as the Google Pay login to submit the data.

See this test page to see the various iframe sandbox values in action.


Shopify successfully certified for PCI DSS v4

Google Pay partnered with Shopify to implement the above solution. Shopify was able to successfully pass the PCI DSS v4 audit by using a sandboxed iframe to display the Google Pay button. Here is what Shopify has to say:

We’ve built Shopify Checkout in such a way that Google Pay code executes in a secure sandboxed environment, allowing us to maintain the integrity of our checkout and comply with PCI DSS V4 requirements.

–

Ilya Grigorik, Distinguished Engineer at Shopify

For more information on how Shopify built their checkout solution using sandboxed iframes, their “Powering Shopify’s High-Performance, PCI DSS v4 Compliant Checkout with Sandboxing” blog post has the insights.


Conclusion

Wrapping your Google Pay integration in a sandboxed iframe can help you to comply with PCI DSS v4 requirements. For more assistance with your implementation, sign in to the Google Pay & Wallet Console to create a support ticket. In addition, you can join the developer community in the #payments channel on Discord.

Follow @GooglePayDevs on X for future updates. If you have questions, tag @GooglePayDevs and include #AskGooglePayDevs in your tweets.



Tags: complianceDSSGoogleiframePayPCIsandboxed
Previous Post

Photonic processor could streamline 6G wireless signal processing | MIT News

Next Post

Data Shows Attendance Improves Student Success

softbliss

softbliss

Related Posts

A Guide to Telemedicine Software Development
Software Development

A Guide to Telemedicine Software Development

by softbliss
June 14, 2025
Publish Your App to Google Play Store
Software Development

Publish Your App to Google Play Store

by softbliss
June 13, 2025
Zencoder launches end-to-end UI testing agent
Software Development

Zencoder launches end-to-end UI testing agent

by softbliss
June 12, 2025
Software Development

AutoGrow Textareas with CSS

by softbliss
June 12, 2025
Growing the Development Forest 🌲 — with Martin Fowler
Software Development

Growing the Development Forest 🌲 — with Martin Fowler

by softbliss
June 11, 2025
Next Post
Data Shows Attendance Improves Student Success

Data Shows Attendance Improves Student Success

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Premium Content

GPT-3.5 vs GPT-4o: Building a Money-Blaster

GPT-3.5 vs GPT-4o: Building a Money-Blaster

April 30, 2025
The Role of Co-Founders: When Two Heads Are Better Than One

The Role of Co-Founders: When Two Heads Are Better Than One

May 12, 2025

How to Build an LLM Agent With AutoGen: Step-by-Step Guide

March 26, 2025

Browse by Category

  • Artificial Intelligence
  • Machine Learning
  • Research & Academia
  • Software Development
  • Startups

Browse by Tags

Amazon App Apps Artificial Blog Build Building Business CEO Coding Data Development Framework Future Gemini Generative Google Guide Innovation Intelligence Language Learning LLM LLMs Machine Microsoft MIT model Models News NVIDIA opinion OReilly Research Science Series Software Solutions Startup Startups Strategies students Tech Tools Video

Soft Bliss Academy

Welcome to SoftBliss Academy, your go-to source for the latest news, insights, and resources on Artificial Intelligence (AI), Software Development, Machine Learning, Startups, and Research & Academia. We are passionate about exploring the ever-evolving world of technology and providing valuable content for developers, AI enthusiasts, entrepreneurs, and anyone interested in the future of innovation.

Categories

  • Artificial Intelligence
  • Machine Learning
  • Research & Academia
  • Software Development
  • Startups

Recent Posts

  • A Guide to Telemedicine Software Development
  • 6 New ChatGPT Projects Features You Need to Know
  • Normal Technology at Scale – O’Reilly

© 2025 https://softblissacademy.online/- All Rights Reserved

No Result
View All Result
  • Home
  • Artificial Intelligence
  • Software Development
  • Machine Learning
  • Research & Academia
  • Startups

© 2025 https://softblissacademy.online/- All Rights Reserved

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?