Jump to content

Prowizja do zapłaty PayPalem


Recommended Posts

Witam. Potrzebuję moduł do naliczenia prowizji przy płatnościach PayPalem.

Albo w jaki sposób zmodyfikować standardowy moduł żeby taka opcja się zjawiła.

Z góry dziękuję za pomóc

Share this post


Link to post
Share on other sites

paypal zabrania tego typu czynności, tj. według regulaminu paypal nie można doliczyć dodatkowej opłaty z tytułu płatności za pośrednictwem paypal, Jak ktoś będzie miły to doniesie, a wtedy trzeba liczyć się nawet z blokadą konta paypal ( i trzymanych na nim środków) 

 

jak to zrobić (gotowiec do podglądnięcia)

http://www.prestashop.com/forums/topic/59296-module-paypal-with-fee-fixed-100-working-english-french-and-spanish-translation/

Share this post


Link to post
Share on other sites

Jest tam plik paypal.tpl gdzie są rubryki Total FEES (czyli ta prowizja), tylko nie wiem dokładnie jaką część kodu mam skopiować do oryginalnego paypal.tpl 

 

daje kod modernizowanego paypal.tpl:

<p class="payment_module">
<a href="javascript:$('#paypal_form').submit();" title="{l s='Pay with PayPal' mod='paypal'}">
<img src="{$module_template_dir}paypal.gif" alt="{l s='Pay with PayPal' mod='paypal'}" />
{l s='Pay with PayPal' mod='paypal'}
{l s='(A surcharge of ' mod='paypal'} {$feestext} GBP )
</a>
</p>
 
<form action="{$paypalUrl}" method="post" id="paypal_form" class="hidden">
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="first_name" value="{$address->firstname}" />
<input type="hidden" name="last_name" value="{$address->lastname}" />
<input type="hidden" name="address1" value="{$address->address1}" />
{if !empty($address->address2)}<input type="hidden" name="address2" value="{$address->address2}" />{/if}
<input type="hidden" name="city" value="{$address->city}" />
<input type="hidden" name="zip" value="{$address->postcode}" />
<input type="hidden" name="country" value="{$country->iso_code}" />
<input type="hidden" name="amount" value="{$amount}" />
<input type="hidden" name="email" value="{$customer->email}" />
 
{if !$discounts}
<input type="hidden" name="shipping_1" value="{$shipping}" />
{counter assign=i}
{foreach from=$products item=product}
<input type="hidden" name="item_name_{$i}" value="{$product.name}{if isset($product.attributes)} - {$product.attributes}{/if}" />
<input type="hidden" name="amount_{$i}" value="{$product.paypalAmount}" />
<input type="hidden" name="quantity_{$i}" value="{$product.quantity}" />
{counter print=false}
{/foreach}
 
{**********************************************************
* PAYPAL SURCHARGE MOD By Aaron (Sitefx.com.au)          *
* If there is a tax and there are multiple items, add    *
* the surcharge as the next item.  *
**********************************************************}
 
{if $totalfees <> 0}
<input type="hidden" name="item_name_{$i}" value="Recargo comisión PayPal" />
<input type="hidden" name="amount_{$i}" value="{$totalfees}" />
<input type="hidden" name="quantity_{$i}" value="1" />
{/if}
 
{else}
<input type="hidden" name="item_name_1" value="{l s='My cart' mod='paypal'}" />
<input type="hidden" name="amount_1" value="{$total}" />
<input type="hidden" name="quantity_1" value="1" />
 
{**********************************************************
* PAYPAL SURCHARGE MOD By Aaron (Sitefx.com.au)          *
* If there is only one item, add it as item 2  *
**********************************************************}
 
{if $totalfees <> 0}
{********************************************************************
* PAYPAL SURCHARGE Correction MOD by Sergio Fernádez (serfer2)     *
*                                 http://www.perfumesyregalos.com  *
********************************************************************}
<input type="hidden" name="item_name_2" value="Recargo comisión PayPal" />
<input type="hidden" name="amount_2" value="{$totalfees}" />
<input type="hidden" name="quantity_2" value="1" />
{/if}
 
{/if}
<input type="hidden" name="business" value="{$business}" />
<input type="hidden" name="receiver_email" value="{$business}" />
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="charset" value="utf-8" />
<input type="hidden" name="currency_code" value="{$currency->iso_code}" />
<input type="hidden" name="payer_id" value="{$customer->id}" />
<input type="hidden" name="payer_email" value="{$customer->email}" />
<input type="hidden" name="custom" value="{$id_cart}" />
<input type="hidden" name="return" value="{$goBackUrl}" />
<input type="hidden" name="cancel_return" value="{$cancelUrl}" />
<input type="hidden" name="notify_url" value="{$notify}" />
{if $header}<input type="hidden" name="cpp_header_image" value="{$header}" />{/if}
    <input type="hidden" name="rm" value="2" />
<input type="hidden" name="bn" value="PRESTASHOP_WPS" />
<input type="hidden" name="cbt" value="{l s='Return to' mod='paypal'} {$meta_title}" />
</form>

Share this post


Link to post
Share on other sites

 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More