Download the PHP package iss/laravel-maya-sdk without Composer

On this page you can find all versions of the php package iss/laravel-maya-sdk. 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 laravel-maya-sdk


Logo

Laravel Maya SDK

Laravel Package that will handle the Maya Payments / Checkout and other Maya API

Request Feature

Downloads Contributors Issues License: MIT Laravel

Table Of Contents

What It Does

This package allows you manage your customer checkouts, webhooks, and other payments using Maya API.

Supported Features:

Next Release:

Getting Started

This is how you can install or use the library.

Installation

  1. Install Maya Payment to your Laravel Application

  2. Publish the configuration

  3. In your config/maya.php, add your public_key and private_key from your PayMaya account.

    config/maya.php

Usage

Integrate to your Laravel Application.

Adding an Item

Calculating the total amount, discounts, shipping fee and other charges

You need to pass the Maya::item()->getItems() to calculate the total amount.

or

To get the totalAmount object you can call the get() method:

Result:

Customer Shipping Address

Customer Billing Address

Buyer's Details

To add shipping / billing address to the buyer, you can use this:

For shipping address:

For billing address:

Redirect URLs

You can use route name from your web.php or api.php file or use static URL with parameters.

The $custom_uuid is from your order's table or any reference ID from your application.

Checkout

Build body request for your checkout based on our created objects above.

Array Response from Maya Checkout Request:

Webhooks Management

Use the MayaWebhook by injecting the facade to your application and to be able to manage your webhooks.

Get All Webhooks

Response:

Create New Webhook

The supported events that you can pass through for method are the following:

AUTHORIZED,PAYMENT_SUCCESS,PAYMENT_FAILED,PAYMENT_EXPIRED,PAYMENT_CANCELLED,3DS_PAYMENT_SUCCESS,3DS_PAYMENT_FAILURE,3DS_PAYMENT_DROPOUT,RECURRING_PAYMENT_SUCCESS,RECURRING_PAYMENT_FAILURE,CHECKOUT_SUCCESS,CHECKOUT_FAILURE,CHECKOUT_DROPOUT,CHECKOUT_CANCELLED

Pass the URL parameter on create() method.

Response:

Get Webhook

Pass the ID of the webhook

Response:

Update Webhook

Pass the ID of the webhook that you want update and the new URL. The first parameter will be the ID of the webhook and the second parameter will be the new URL.

Response:

Delete Webhook

Pass the ID of the webhook that you want to delete.

Response:

Customizations

Use the MayaCustomization by injecting the facade to your application.

Set Customization

Set your LogoUrl, IconUrl, AppleTouchIconUrl, CustomTitle and ColorScheme. These are the required fields.

Helper functions:

Response:

Get Customization

Response:

Delete Customization

Response:

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are welcome and will be fully credited.

Please read and understand the contribution guide before creating an issue or pull request.

Etiquette

This project is open source, and as such, the maintainers give their free time to build and maintain the source code held within. They make the code freely available in the hope that it will be of use to other developers. It would be extremely unfair for them to suffer abuse or anger for their hard work.

Please be considerate towards maintainers when raising issues or presenting pull requests. Let's show the world that developers are civilized and selfless people.

It's the duty of the maintainer to ensure that all submissions to the project are of sufficient quality to benefit the project. Many developers have different skillsets, strengths, and weaknesses. Respect the maintainer's decision, and do not be upset or abusive if your submission is not used.

Viability

When requesting or submitting new features, first consider whether it might be useful to others. Open source projects are used by many developers, who may have entirely different needs to your own. Think about whether or not your feature is likely to be used by other users of the project.

Procedure

Before filing an issue:

Before submitting a pull request:

Credits

License

Distributed under the MIT License. See LICENSE for more information.


All versions of laravel-maya-sdk with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version 7.7.0
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 iss/laravel-maya-sdk contains the following files

Loading the files please wait ....