Git Product home page Git Product logo

instantbuy-sample-php's Introduction

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.

instantbuy-sample-php's People

Contributors

niketas avatar samtstern avatar shantanusaini avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.