Skip to content

Commit

Permalink
V1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
boiteasite committed Nov 15, 2017
1 parent ea7ab3f commit daf30b7
Show file tree
Hide file tree
Showing 16 changed files with 383 additions and 355 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,35 @@ Very usefull and powerfull.

[CMSUno](https://github.com/boiteasite/cmsuno)

### Gateway ###

You can create a Gateway plugin for another payment system and link it with Payment. Connectors are as follow :

* The name of the plugin must begin with __pay__ (payfoo).
* To Enabled/Disabled the plugin in Payment, it's needed to write in __data/payment.json__ :

``` data['method']['payfoo'] = 1
data['method']['payfoo'] = 0 ```
* The image button of you payment method should named __payfoo-btn.png__. Recommended size : 76x48. Folder : payfoo/img/.
* You should include a JS script with a function named __payfooCart(cart)__. This function will be called when the buyer clic the image button. This is the gateway.
"cart" is a JSON var :
``` {"prod":{
{"n":"screwdriver","p":3.90,"i":"id765","q":5},
{"n":"saw","p":7.60,"i":"string id","q":3},
{"n":"hammer","p":12.5,"i":"string id","q":2}
},
"digital":"index|readme",
"ship":"4",
"name":"Bob Dylan",
"adre":"1250 Edouard street 33234 ERZ",
"mail":"[email protected]"} ```
### Versions ###
* 1.2 - 15/11/2017 : Change connection with external payment gateway
* 1.1.3 - 10/11/2017 : Add Gateway with Bitcoin Paycoin plugin
* 1.1.2 - 21/05/2017 : Option to hide the CKEditor Add To Cart Button
* 1.1.1 - 15/03/2017 :
Expand Down
Binary file removed img/paypal76.png
Binary file not shown.
Binary file removed img/payplug76.png
Binary file not shown.
Binary file modified lang/es_ES.utf8/LC_MESSAGES/payment.mo
Binary file not shown.
Loading

0 comments on commit daf30b7

Please sign in to comment.