Skip to content

isabella232/actions-builder-transactions-nodejs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Actions on Google: Physical Goods Transaction Sample

This sample demonstrates the physical good transactions for Google Assistant Actions.

⚠️ Caution: A section of this sample currently makes use of the Google Pay API. Currently, Google is working with a limited number of partners that can get access to the production Google Pay API. If you're not one of those partners, you're welcome to read the test the integration using the sandbox environment. Alternatively, you can use the merchant payment option to when making transactions.

⚠️ Warning: Due to new regulatory requirements, transaction functionalities for Conversational Actions will not be available in the following countries after May 1, 2022: Denmark, France, Germany, Italy, the Netherlands, Norway, Spain, Sweden, Poland

Prerequisites

  1. Node.js and NPM
  2. Install the Firebase CLI
    • We recommend using MAJOR version 8 , npm install -g firebase-tools@^8.0.0
    • Run firebase login with your Google account

Setup

Actions Console

  1. From the Actions on Google Console, New project > Create project > under What kind of Action do you want to build? > Custom > Blank project

Actions CLI

  1. Install the Actions CLI.
  2. Navigate to sdk/settings/settings.yaml, and replace <PROJECT_ID> with your project ID
  3. Run gactions login to login to your account.
  4. Run gactions push to push your project.
  5. Run gactions deploy preview to deploy your project.

Running this Sample

  • You can test your Action on any Google Assistant-enabled device on which the Assistant is signed into the same account used to create this project. Just say or type, “OK Google, talk to my test app”.
  • You can also use the Actions on Google Console simulator to test most features and preview on-device behavior.

Troubleshooting

  • If running into issues after following the above steps, ensure you have payment options configured for your account:
  1. Open the Google app on your Android device.
  2. Tap the "More" button in the bottom right.
  3. Tap "Settings".
  4. Tap "Google Assistant".
  5. Tap "Payments" and configure payment options.

References & Issues

Contributing

Please read and follow the steps in the CONTRIBUTING.md.

License

See LICENSE.

About

Transactions sample (using Actions Builder) in Node.js

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%