Skip to content

isabella232/instantbuy-sample-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project status

status: inactive

This project is no longer actively maintained, and remains here as an archive of this work.

instantbuy-sample-php

Basic PHP implementation of the Google Wallet for Instant Buy API.

Setup

To setup the sample, edit inc/config.php.

  • If you don't already have a Google contact, submit the Instant buy interest form. Google will respond to qualified merchants with instructions on how to set up merchant credentials.
  • Replace MERCHANT_ID, MERCHANT_SECRET, MERCHANT_NAME in config.php with your Merchant Id, Merchant Secret Key, Merchant Name.
  • Create an API project in the Google API Console then select the API Access tab in your API project, and click Create an OAuth 2.0 client ID and also enable Google+ API in services tab.
  • Replace OAUTH_CLIENT_ID, ORIGIN_URL with your OAUTH Client Id and Application Origin Url.

Google appengine.

To run application on google appengine requires Google App Engine SDK and PHP5.4+

  1. Create new application at your appengine account.
  2. You need to register your application to be whitelisted before uploading it on appengine. Register your PHP applications to be deployed to App Engine visit https://gaeforphp.appspot.com.
  3. Change application name in app.yaml file.
  4. Follow instruction to install google appengine sdk for php and to upload the application on Google Appengine for PHP Docs

Local dev.

To run application on local server requires apache HTTP server 2.0 or greater and PHP5+.

  1. Make sure "allow_url_include" option is enabled in php.ini file.
  2. Copy the files to default DocumentRoot of the server.
  3. You can now visit http://localhost in your browser to see the application in action.

About

PHP implementation of the Google Wallet Instant Buy API.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 60.9%
  • JavaScript 25.1%
  • PHP 14.0%