{** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License version 3.0 * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 *}
{if !$orderPayPal}
{if $psPayPalOrder->getStatus() === 'CANCELED'} {elseif $psPayPalOrder->getStatus() === 'REVERSED'} {else}

{l s='The PayPal account that was used to create this order is no longer linked to the PrestaShop Checkout module.' d='Modules.Checkout.Pscheckout'}

{l s='In order to see this information, please reconnect the correct PayPal account.' d='Modules.Checkout.Pscheckout'}


{/if}
{/if} {if $orderPayPal}

{l s='PayPal Order' d='Modules.Checkout.Pscheckout'}

{l s='Reference' d='Modules.Checkout.Pscheckout'}
{$orderPayPal.id|escape:'html':'UTF-8'}
{l s='Status' d='Modules.Checkout.Pscheckout'}
{$orderPayPal.status.translated|escape:'html':'UTF-8'}
{l s='Total' d='Modules.Checkout.Pscheckout'}
{$orderPayPal.total}
{l s='Balance' d='Modules.Checkout.Pscheckout'} info
{$orderPayPal.balance}
{l s='Environment' d='Modules.Checkout.Pscheckout'} info
{if $isProductionEnv} {l s='Production' d='Modules.Checkout.Pscheckout'} {else} {l s='Test' d='Modules.Checkout.Pscheckout'} {/if}
{l s='Payment mode' d='Modules.Checkout.Pscheckout'}
{$orderPayPal.paymentSourceName|escape:'html':'UTF-8'} {$orderPayPal.paymentSourceName|escape:'html':'UTF-8'}
{if $psPayPalOrder->getFundingSource() === 'card'}
{l s='3D Secure' d='Modules.Checkout.Pscheckout'}
{if $orderPayPal.is3DSNotRequired} {l s='Not required' d='Modules.Checkout.Pscheckout'} {elseif $orderPayPal.is3DSecureAvailable && $orderPayPal.isLiabilityShifted} {l s='Success' d='Modules.Checkout.Pscheckout'} {elseif $orderPayPal.is3DSecureAvailable && !$orderPayPal.isLiabilityShifted} {l s='Failed' d='Modules.Checkout.Pscheckout'} {else} {l s='Card does not support 3D Secure' d='Modules.Checkout.Pscheckout'} {/if}
{l s='Liability shift' d='Modules.Checkout.Pscheckout'}
{if $orderPayPal.isLiabilityShifted} {l s='Bank' d='Modules.Checkout.Pscheckout'} {else} {l s='Merchant' d='Modules.Checkout.Pscheckout'} {/if}
{/if}
{if $psPayPalOrder->getFundingSource() === 'card' && !$orderPayPal.isLiabilityShifted}
{if $orderPayPal.is3DSNotRequired} {l s='Your 3D Secure settings for this transaction were set to "Strong Customer Authentication (SCA) when required", but the current transaction does not require it as per the regulation.' d='Modules.Checkout.Pscheckout'} {/if} {l s='The bank issuer declined the liability shift. We advice you not to honor the order immediately, wait a few days in case of chargeback and contact the consumer to ensure authenticity of the transaction. For this type of cases we also recommend to consider Chargeback protection.' d='Modules.Checkout.Pscheckout'}
{/if} {if $psPayPalOrder->getFundingSource() === 'card' && $orderPayPal.isLiabilityShifted}
{l s='The bank issuer accepted the liability shift. You can safely honor the order.' d='Modules.Checkout.Pscheckout'}
{/if}
{if !empty($orderPayPal.transactions)}
{assign var="counter" value=1} {foreach $orderPayPal.transactions as $orderPayPalTransaction} {assign var="counter" value=$counter+1} {/foreach}
{assign var="counter" value=1} {foreach $orderPayPal.transactions as $orderPayPalTransaction} {assign var="maxAmountRefundable" value=$orderPayPalTransaction.maxAmountRefundable|string_format:"%.2f"} {assign var="orderPayPalRefundAmountIdentifier" value='orderPayPalRefundAmount'|cat:$orderPayPalTransaction.id}

{l s='Transaction details' d='Modules.Checkout.Pscheckout'}

{l s='Reference' d='Modules.Checkout.Pscheckout'}
{$orderPayPalTransaction.id}
{l s='Status' d='Modules.Checkout.Pscheckout'}
{$orderPayPalTransaction.status.translated|escape:'html':'UTF-8'}
{l s='Amount (Tax incl.)' d='Modules.Checkout.Pscheckout'}
{$orderPayPalTransaction.amount} {$orderPayPalTransaction.currency}
{if !empty($orderPayPalTransaction.seller_protection)}
{l s='Seller protection' d='Modules.Checkout.Pscheckout'} info
{$orderPayPalTransaction.seller_protection.translated|escape:'html':'UTF-8'}
{/if}
{if $orderPayPalTransaction.gross_amount || $orderPayPalTransaction.paypal_fee || $orderPayPalTransaction.net_amount}

{l s='Transaction amounts' d='Modules.Checkout.Pscheckout'}

{if $orderPayPalTransaction.gross_amount}
{l s='Gross amount' d='Modules.Checkout.Pscheckout'}
{$orderPayPalTransaction.gross_amount} {$orderPayPalTransaction.currency}
{/if} {if $orderPayPalTransaction.paypal_fee}
{l s='Fees (Tax Incl.)' d='Modules.Checkout.Pscheckout'}
- {$orderPayPalTransaction.paypal_fee} {$orderPayPalTransaction.currency}
{/if} {if $orderPayPalTransaction.net_amount}
{l s='Net amount' d='Modules.Checkout.Pscheckout'}
{$orderPayPalTransaction.net_amount} {$orderPayPalTransaction.currency}
{/if}
{/if} {l s='See on PayPal' d='Modules.Checkout.Pscheckout'} {if $orderPayPalTransaction.isRefundable}
{l s='Any change on the order?' d='Modules.Checkout.Pscheckout'} {l s='Refund' d='Modules.Checkout.Pscheckout'}
{/if}
{if $orderPayPalTransaction.isRefundable} {/if} {assign var="counter" value=$counter+1} {/foreach}
{/if} {/if}