Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/georgikolev7/leanpay-payment-gateway-cscart-addon
LeanPay payment gateway (CS-Cart 4.10.x - 4.11.x addon)
https://github.com/georgikolev7/leanpay-payment-gateway-cscart-addon
Last synced: 10 days ago
JSON representation
LeanPay payment gateway (CS-Cart 4.10.x - 4.11.x addon)
- Host: GitHub
- URL: https://github.com/georgikolev7/leanpay-payment-gateway-cscart-addon
- Owner: georgikolev7
- Created: 2019-10-14T10:05:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-25T08:14:54.000Z (over 4 years ago)
- Last Synced: 2024-04-17T16:35:14.460Z (7 months ago)
- Language: PHP
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## LeanPay payment gateway (CS-Cart addon)
The addon require manually set up of cron job, to synchronize installment plans from LeanPay API.
0 */12 * * * curl "http://yourdomain.com/index.php?dispatch=leanpay.fetch" > /dev/null 2>&1
## How to integrate into template
1. Inside your "design/themes/NAME_OF_YOUR_THEME/templates/common/product_data.tpl", add the following code
```smarty
{capture name="leanpay_payment_`$obj_id`"}
{if $product.leanpay_installments}
{foreach from=$product.leanpay_installments item=installment}
- polog {$product.leanpay_downpayment|string_format:"%.2f"}€ + {$installment.months} x {$installment.installment|string_format:"%.2f"}€
{/foreach}
{/if}
{/capture}{if $no_capture}
{assign var="capture_name" value="leanpay_payment_`$obj_id`"}
{$smarty.capture.$capture_name nofilter}
{/if}
```2. Inside your "design/themes/NAME_OF_YOUR_THEME/templates/blocks/product_templates/default_template.tpl find
```smarty
{$smarty.capture.$list_discount nofilter}
```and add after it the capture to display the installments
```smarty
{assign var="leanpay_payment" value="leanpay_payment_`$obj_id`"}
{$smarty.capture.$leanpay_payment nofilter}
```