2017 © Pedro Peláez
 

library cmpayservice

Use the CM Pay service with Laravel

image

superbuddy/cmpayservice

Use the CM Pay service with Laravel

  • Monday, August 1, 2016
  • by superbuddy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

CmPayService

CmPayService is a Laravel package for the API of CM Payments. (pay.cm.nl), (*1)

How to use it:

composer

Require it:, (*2)

  • "CJSDevelopment/CmPayService" : "dev-master"

app.php

Add the following data:, (*3)

ServiceProvider

  • 'CJSDevelopment\CmPayServiceProvider'

Facade

  • 'PaymentService' => 'CJSDevelopment\CmPayService',

Deploy / Update

Execute the following commands in your console: - sudo composer selfupdate - sudo composer update - sudo php artisan vendor:publish, (*4)

Config

After executing the vendor:publish command you will find a config file in the Laravel config folder. Fill the Mandatory fields, check the optional., (*5)

Don't forget to fill in the right company name and product token, (*6)

Usage in your code:

Initializing

For payment methods & options: - CmPayService::getPaymentMethods($amount (should be integer));, (*7)

Executing

To forward the customer to the payment screen of their financial instance. - CmPayService::getTransactionUrl($amount, $method, $option, $parameters);, (*8)

# $ Description
1 $amount The amount of the order to process
2 $method The Payment method, this can be iDeal, Mr. Cash, etc
3 $option The Payment option, depends on the $method.
4 $parameters This is an array with multiple key's as information

The Parameters options:, (*9)

Key Description Type
"reference" The reference for the order varchar
"return_url" The base URL that gets returned to url
"success_url" The part that goes behind the base URL text
"fail_url" The part that goes behind the base URL text
"cancel_url" The part that goes behind the base URL text
"error_url" The part that goes behind the base URL text

Check

  • You can check it yourself by your own lovings.

The Versions

01/08 2016

dev-master

9999999-dev http://chilion.nl/published-cmpayservice-for-laravel-package/

Use the CM Pay service with Laravel

  Sources   Download

MIT

The Requires

 

by Chilion Snoek