The Code Generator lets you quickly customize and preview in jsFiddle a working Google Pay integration following the template from our Google Pay Tutorial page.
How to use this tool
- Clicking on the arrow to the right of an object label will open it for editing , or close it if it's already open.
- Clicking on the ⓘ icon to the left of an object label will open our documentation page for that object and its parameters.
- Multi-select fields will let you select multiple entries at the same time. Click an option to select or deselect it, and control or command-click to deselect all other options.
- Shift-clicking an option in a multi-select field will apply the last toggled status to all options between it and the shift-clicked option.
- As you edit parameters, the code sample will automatically update based on your settings, and notify you when a configuration is known to be invalid.
- To preview your Google Pay integration, click the jsFiddle
<>
icon at the top of the code sample. - When you're ready to go live, follow our integration checklist.