Download the PHP package jiggsawphp/paygatepro without Composer

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

PayGatePro - Handle Payments in Your Laravel Application

Introduction

PayGatePro is a Laravel package designed to streamline the integration of multiple payment gateways into your Laravel application. Whether you need to handle payments via Stripe, PayPal, or any other supported gateway, PayGatePro provides a unified interface for managing transactions.

Features

Requirements

Installation

To install PayGatePro, follow these steps:

  1. Add the Package to Your Project

    Add the package to your composer.json file or run the following command:

    bash php artisan vendor:publish --provider="JiggsawPhp\PayGatePro\Providers\PaymentServiceProvider"

Usage

Package supports Stripe, Authorize.net and PayPal payment gateways.

Get your credentials for payment gateway you want to use.

In your .env add:

PAYMENT_GATEWAY variable defines payment gateway you want to use (default is stripe) (stripe, paypal or authorize).

  1. Include PaymentService in your code and use charge or refund methods from it.
  2. Examples:

    
    use JiggsawPhp\PayGatePro\Services\PaymentService;
    
    public function __construct(PaymentService $paymentService)
    {
        $this->paymentService = $paymentService;
    }
    
    /**
     * Charge with Stripe
     * @return JsonResponse
     */
    public function chargeWithStripe(): JsonResponse
    {
        $response = $this->paymentService->charge(100, 'USD', ['source' => 'tok_visa']);
    
        return response()->json($response, Response::HTTP_OK);
    }
    
    /**
     * Refund with Stripe
     * @return JsonResponse
     */
    public function refundWithStripe(): JsonResponse
    {
        $response = $this->paymentService->charge(100, 'USD', ['source' => 'tok_visa']);
        $refund = $this->paymentService->refund($response->id, 50, []);
    
        return response()->json($refund, Response::HTTP_OK);
    }
    
    /**
     * Charge with PayPal
     * @return JsonResponse
     */
    public function chargeWithPayPal(): JsonResponse
    {
        $response = $this->paymentService->charge(100.00, 'USD', [
            'return_url' => route('payment.success'),
            'cancel_url' => route('payment.cancel'),
            'description' => 'Payment for Order #12345',
        ]);
    
        return response()->json($response, Response::HTTP_OK);
    }
    
    /**
     * Refund with PayPal
     * @return JsonResponse
     */
    public function refundWithPayPal(): JsonResponse
    {
        $charge = $this->paymentService->charge(100.00, 'USD', [
            'return_url' => route('payment.success'),
            'cancel_url' => route('payment.cancel'),
            'description' => 'Payment for Order #12345',
        ]);
        $refund = $this->paymentService->refund($charge->id, 50.00);
    
        return response()->json($refund, Response::HTTP_OK);
    }
    
    /**
     * Charge with Authorize.net
     * @return JsonResponse
     */
    public function chargeWithAuthorize(): JsonResponse
    {
        $response = $this->paymentService->charge(100.00, 'USD', [
            'card_number' => '4111111111111111',
            'expiration_date' => '2024-12',
            'cvv' => '123',
        ]);
    
        return response()->json($response, Response::HTTP_OK);
    }
    
    /**
     * Refund with Authorize.net
     * @return JsonResponse
     */
    public function refundWithAuthorize(): JsonResponse
    {
        $charge = $this->paymentService->charge(100.00, 'USD', [
            'card_number' => '4111111111111111',
            'expiration_date' => '2024-12',
            'cvv' => '123',
        ]);
        $refund = $this->paymentService->refund($charge->id, 50.00, [
            'card_number' => '4111111111111111',
        ]);
    
        return response()->json($refund, Response::HTTP_OK);
    }

All versions of paygatepro with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^9.0|^10.0|^11.0
stripe/stripe-php Version ^10.0
paypal/rest-api-sdk-php Version *
authorizenet/authorizenet Version ^2.0
psr/log Version ^1.0 || ^2.0 || ^3.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 jiggsawphp/paygatepro contains the following files

Loading the files please wait ...