Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

Awesome Lists containing this project

README

        

## LeanPay payment gateway (CS-Cart addon)

http://docs.leanpay.si

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}
```