Download the PHP package payfully/integrator without Composer

On this page you can find all versions of the php package payfully/integrator. 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 integrator

Payfully Integrator PHP

Introduction

Welcome! We greatly appreciate your interest in the Payfully platform! In this guide we are going to walk you through our integration features.

If you have any questions please don't hesitate to contact us.

How it works

We provide url generator that will create an advance application with the information provided. If the user does not exist in our platform, we will automatically create it.

Payfully has two (2) environments:

We'll provide the testing environment keys for you, and when the integration is ready we will send the production ones.

Instructions:

  1. You need to obtain the specific environment credentials: relativeUrl and aesKey.
  2. Gather the required information (user, application, and documents).
  3. Add each component to the $urlGenerator.
  4. Generate a special URL (referred as IntegrationURL).
  5. Place them on your platform, so that agents can click on them.

When the Agent (user) which is logged into your platform clicks on the link, they get redirected to Payfully, we automatically log the agent in (and create an account if needed). Finally, the Advance Application is also generated at the same time automatically. The agent will only need to fill out the information that was not provided via the link generator.

Important: Integration URLs should be considered as sensitive information and should not be exposed to anyone except the users (which they are generated for). As following the Integration URL allows logging into Payfully account.

Integration Links

The generated Integration URL looks like:

https://<environment>.payfully.co/integrations/[relativeUrl]/[encodedData]

An example Integration URL looks like:

https://integration-stage.payfully.co/integrations/SuperAgency/VTJGc2RHVmtYMTlDSlo0Uk16TjJKOFZNZU4rcmc3VWNobUVXMjNtQzQ4ST0=

Data Structure

The URLGenerator expects you to pass the following data:

Please refer to the specific sections to get more detail:

Credentials Explained

In order to generate Integration URLs you will need to get the following credentials:

Please contact immediately a Payfully Admin in case it gets exposed/compromised. The Admin will rotate it and provide you with the new key.

Generating an Integration URL

Instructions:

  1. Add the library to composer.

  2. Instantiate the library object, and set the relativeUrl, aesKey and Env values inside the constructor.

NOTE: The possible environment values are:

If no environment is set, then we assume it's production

  1. Form a PHP array containing the required data and set the Data to each section.

  2. Finally call the method generate()

Here is the full example:

The code above outputs:

NOTE: Tested with PHP v7.1

User Data

Required Data

Each Integration URL must contain the user information.

We are going to create a Payfully account basing on this data.

Note:

  • The password is generated and send over the email along with the reset password link.
  • If the user with such email already exists and created over the integration we just log the user in. (e.g. that could happen if agent follow the same Integration URL twice or more times)

Advance Applications Data

If you have internal MLS ID's for deals please provide it as dealInformation['mlsId']. This is used to avoid duplicating Advance Applications. If mlsId Is missing it's going to be auto-generated by combining dealInformation['closingDate'] and dealInformation['propertyAddress'].

Any optional data that was not provided by Integration URL can be filled later manually.

Required Data

agentInformation['represents'] can only be one of:

dealInformation['propertyType'] should be one of:

Attaching Documents to Advance Application

The documents property on Integration URLs data allows attaching documents to Advance Application. If this object is empty, the agent will need to upload all documents on our platform.

The documents object looks like:

The document type should be one of:

Note: Documents are downloaded in a separate process. That happens in a background. The agent is going to be notified that the documents are loading when he visits Payfully website.

Also if any of the document downloads fail, the agent will be able to do a manual upload at Payfully website.


All versions of integrator with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
giggsey/libphonenumber-for-php Version ^8.10
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 payfully/integrator contains the following files

Loading the files please wait ....