{include file="templates/emails/elements/top_html.html"}

{lang msg=$msg.recurring.subscription_transaction_failed profile_id=$profile->profileId}

{if $transaction_response}

{$msg.recurring.subscription_transaction_results}

{$msg.recurring.subscription_transaction_response}: {$transaction_response}

{/if}
{$msg.recurring.profile_properties}
{$msg.recurring.profile_id}: {$profile->profileId}
{$msg.recurring.status}: {$profile->status}
{$msg.recurring.next_payment}: {$profile->dateNextBilling|date_format:$msg.common.date_format}
 
{$msg.recurring.item}
{$msg.recurring.item}: {$lineItem->title|htmlspecialchars} {if $lineItem->productRecurringBillingData->scheduleDescription != ''}

{$lineItem->productRecurringBillingData->scheduleDescription|htmlspecialchars} {/if} {if $lineItem->options != ''}

Options:
{$lineItem->options|nl2br}{/if}
 
{$msg.recurring.payment_method}
{if $paymentProfile->name != ''}{$paymentProfile->name|htmlspecialchars}
{/if} {$paymentProfile->billingData->name|htmlspecialchars}
{$paymentProfile->billingData->ccNumber|htmlspecialchars} - {$paymentProfile->billingData->ccExpirationMonth|htmlspecialchars}/{$paymentProfile->billingData->ccExpirationYear|htmlspecialchars}


{$paymentProfile->billingData->addressLine1|htmlspecialchars}
{if $paymentProfile->billingData->addressLine2 != ''}{$paymentProfile->billingData->addressLine2|htmlspecialchars}
{/if} {$paymentProfile->billingData->city|htmlspecialchars}, {$paymentProfile->billingData->stateName|htmlspecialchars} {$paymentProfile->billingData->zip|htmlspecialchars}
{$paymentProfile->billingData->countryName|htmlspecialchars} {if $paymentProfile->billingData->phone != ''}

{$msg.recurring.phone}: {$paymentProfile->billingData->phone|htmlspecialchars} {/if}
 
{$msg.recurring.delivery_preferences}
{$msg.recurring.shipping_method}: {$order->shippingMethodName}
{if $shippingAddress}

{$shippingAddress->name|htmlspecialchars} ({$shippingAddress->addressType}) {if $shippingAddress->companyName != ''}
{$shippingAddress->companyName}{/if}


{$shippingAddress->addressLine1|htmlspecialchars}
{if $shippingAddress->addressLine2 != ''}{$shippingAddress->addressLine2|htmlspecialchars}
{/if} {$shippingAddress->city|htmlspecialchars}, {$shippingAddress->stateName|htmlspecialchars} {$shippingAddress->zip|htmlspecialchars}
{$shippingAddress->countryName|htmlspecialchars} {/if}
  {include file="templates/emails/elements/bottom_html.html"}