Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
Make sure not to include subscription reference if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
yorinasub17 committed Aug 22, 2014
1 parent 8c6c568 commit dc379fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mocurly/templates/transaction.xml
Expand Up @@ -3,7 +3,9 @@
{% if transaction.uris.invoice_uri %}
<invoice href="{{ transaction.uris.invoice_uri }}"/>
{% endif %}
<subscription href="{{ transaction.uris.subscription_uri }}"/>
{% if transaction.uris.subscription_uri %}
<subscription href="{{ transaction.uris.subscription_uri }}"/>
{% endif %}
<uuid>{{ transaction.uuid }}</uuid>
<action>{{ transaction.action }}</action>
<amount_in_cents type="integer">{{ transaction.amount_in_cents }}</amount_in_cents>
Expand Down

0 comments on commit dc379fa

Please sign in to comment.