Skip to content

cedriclombardot/sfAtosPaymentPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# sfAtosPaymentPlugin

This plugin is now compatible doctrine and propel but if you use the latest 
sf1.2 branches upgrade your model rename cols data to datas.

This plugin will help you to save the CB payments with the MERCANET system 
known as SIPS, ATOS ... This is the most used systems for French Banks.

## Installation

    [console]
    symfony plugin:install sfAtosPaymentPlugin 
    
Activate the modules :

* sfAtosPayment for the front for propel and doctrine
* sfAtosPaymentAdmin for the admin app for doctrine see after for propel
* sfAtosPaymentDemo for the front if you want to have a demo for propel and doctrine


Rebuild your database to load the table

Configure the app.yml

    [yml]
    all:
      sfAtosPaymentPlugin:
        debug: "no" # par defaut no
        #currency_code: EUR # PAR defaut EUR coe de paiement par défaut si non surchargé dans le module
        #merchant_country: fr # Par defaut fr sauf surcharge dans le code
        binpath: "/home/project/sfAtosPaymentPlugin/cgi-bin" # Chemin d'accès aux binaires
        merchant_id: "038862749811111" #mettre des quotes pour le 0
        #pathfile_path: "" # Chemin du pathfile par defaut le dossier atos du plugin
        #d_logo: "" # Chemin des logos par défaut le dossier logos de web du plugin
        #f_certificate: "" #par defaut le meme dossier que pathfile /certif
        #f_param: "" #par defaut le meme dossier que pathfile /parcom
        f_default_name: "parmcom.cyberplus" # dans le dossier de parcom
        #merchant_language: "fr" # Langue du commercant
        #cancel_url: "" #Url pour les annulations par defaut @homepage
        #confirmation_url: "" #Url pour les confirmations @homepage
        #autoresponse_url: "sfAtosPayment/response" #URL par defaut sfAtosPayment/response Attention a modifier avec précautions



After clear your cache and rebuild the pathfile with

    [console]
    symfony atos:pathfile YOUR_APP

Set yours certif and parcom files in the atos folder

If you want that the save was correct in your base, you've to set debug to NO and rebuild your pathfile

## You're Using Propel ?

1) Rename lib/sfAtosCart.php.propel to lib/sfAtosCart.php
2) Rename lib/sfAtosCartPeer.php.propel to lib/sfAtosCartPeer.php
3) Remove lib/doctrine and clear cache

With admin plugin :
4) Replace config/routing.yml by config/routing.yml.propel
5) Replace modules/sfAtosPaymentAdmin/config/generator.yml by modules/sfAtosPaymentAdmin/config/generator.yml.propel

## You're Using Doctrine ?

1) Enjoy !

## You're Using the old release ?

1) Rebuild your model the name of model is now SfAtosCart and data columns renamed to datas