Download the PHP package remp/crm-google-play-billing-module without Composer

On this page you can find all versions of the php package remp/crm-google-play-billing-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package crm-google-play-billing-module

Google Play Billing Module

Translation status @ Weblate

Installation

We recommend using Composer for installation and update management. To add CRM GooglePlay Billing extension to your REMP CRM application use following command:

Enable installed extension in your app/config/config.neon file:

Add database tables and seed GooglePlay Billing payment gateway and its configuration:

Configuration

Payment notifications

To be able to read pub/sub notifications generated by your payments, CRM needs to be able to have an access to your Pub/Sub notifications account via service account credentials.

Head to the Google Developer Console - Credentials and generate new Service account JSON key and download it.

Make sure you're generating the key for the same project and same service account, that's linked to your Google Play console - Developer account - API access.

Enter path to service account JSON with access to Google Play into CRM configuration:

Mapping subscriptions

GooglePlay's in-app subscription is mapped to CRM subscription type via relation table google_play_billing_subscription_types.

We'll be adding administration interface later. For now it's needed to seed these mapping data manually.

Matching payments with CRM users

GooglePlay's in-app subscription is mapped to CRM users via obfuscatedExternalAccountId field of SubscriptionResponse. This field is present in Google Play Billing library v2.2.

For previous version (<2.2) of Google Play Billing library, you have to set field obfuscatedExternalAccountId into DeveloperPayload. This is deprecated and will be removed after official SubscriptionResponse in Google's package google/apiclient-services is updated and response contains getObfuscatedExternalAccountId() method.

If user cannot be matched, processor creates anonymous unclaimed user _(user with user_meta flag UnclaimedUser::META_KEY set to true)_. This is needed to fulfill Google's rules - user registration cannot be prerequisite of Android in-app purchases.

In case you need to link CRM user with app user in different way, you can override it by implementing SubscriptionResponseProcessorInterface and initializing own implementation as subscriptionResponseProcessor in config:

Commands

google:revalidate-developer-notification

Command serves to revalidate developer notification against Google Billing service.

Support


All versions of crm-google-play-billing-module with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
aporat/store-receipt-validator Version ^4.2
google/apiclient Version ^2.9
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package remp/crm-google-play-billing-module contains the following files

Loading the files please wait ....