forked from travis-ci/travis-crowd
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add the stripe stamp to the payment confirmation email
- Loading branch information
Sven Fuchs
committed
Feb 6, 2012
1 parent
5a62230
commit 50c85be
Showing
4 changed files
with
44 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,37 @@ | ||
%h2 Invoice | ||
#invoice | ||
%h2 Invoice | ||
|
||
%dl | ||
%dt Number | ||
%dd= "CF%09d" % order.id | ||
%dt Date | ||
%dd= l Time.now, :format => :short | ||
%dt= order.subscription? ? 'Subscription' : 'Package' | ||
%dd= order.package.name | ||
%dt Price | ||
- if order.add_vat? | ||
%dd | ||
#{number_to_currency order.package.price_with_vat_in_dollars} | ||
(#{number_to_currency order.package.price_in_dollars} plus #{number_to_currency order.package.vat_in_dollars} VAT, which equals 19%) | ||
- else | ||
%dd= number_to_currency order.total_in_dollars | ||
%img.stamp{src: encoded_image('logos/stripe-stamp-111x103.png')} | ||
|
||
- if order.subscription? | ||
%p The payment for this subscription will be due on a monthly base and billed on your credit card by our payment partner. | ||
%dl | ||
%dt Number | ||
%dd= "CF%09d" % order.id | ||
%dt Date | ||
%dd= l Time.now, :format => :short | ||
%dt= order.subscription? ? 'Subscription' : 'Package' | ||
%dd= order.package.name | ||
%dt Price | ||
- if order.add_vat? | ||
%dd | ||
#{number_to_currency order.package.price_with_vat_in_dollars} | ||
(#{number_to_currency order.package.price_in_dollars} plus #{number_to_currency order.package.vat_in_dollars} VAT, which equals 19%) | ||
- else | ||
%dd= number_to_currency order.total_in_dollars | ||
|
||
%h3 Your address | ||
%dl | ||
- %w(name street city zip state country).each do |attr| | ||
- if order.billing_address.send(attr).present? | ||
%dt= attr.camelize | ||
%dd= order.billing_address.send(attr) | ||
- if order.subscription? | ||
%p The payment for this subscription will be due on a monthly base and billed on your credit card by our payment partner. | ||
|
||
%p.footnotes | ||
Travis CI GmbH, Prinzessinenstr. 20, 10969 Berlin, Germany, VAT ID: (in Gründung), CEOs: Sven Fuchs and Joshua Kalderimis, | ||
Register Berlin (in Gründung) | ||
%p.footnotes | ||
We use Stripe Inc., 522 Ramona St, Palo Alto, CA 94391, U.S.A., as our payment partner. All payments made via Stripe are routed to us by our clearing agent JumpstartLab, Jeff Casimir, 3634 Georgia Ave NW, Washington, DC 20010, U.S.A. | ||
%p.footnotes | ||
Contributions and payments to travis-ci.org or Travis CI GmbH are not deductible as charitable contributions for federal income tax purposes. However, they may be deductible under other provisions of the Internal Revenue Code (for US) or your local tax authority's advice. | ||
%h3 Your address | ||
%dl | ||
- %w(name street city zip state country).each do |attr| | ||
- if order.billing_address.send(attr).present? | ||
%dt= attr.camelize | ||
%dd= order.billing_address.send(attr) | ||
|
||
%p.footnotes | ||
Travis CI GmbH, Prinzessinenstr. 20, 10969 Berlin, Germany, VAT ID: (in Gründung), CEOs: Joshua Kalderimis and Sven Fuchs, | ||
Register Berlin (in Gründung) | ||
%p.footnotes | ||
We use Stripe Inc., 522 Ramona St, Palo Alto, CA 94391, U.S.A., as our payment partner. All payments made via Stripe are routed to us by our clearing agent JumpstartLab, Jeff Casimir, 3634 Georgia Ave NW, Washington, DC 20010, U.S.A. | ||
%p.footnotes | ||
Contributions and payments to travis-ci.org or Travis CI GmbH are not deductible as charitable contributions for federal income tax purposes. However, they may be deductible under other provisions of the Internal Revenue Code (for US) or your local tax authority's advice. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.