-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated payments styling, missing i18n
- single card payment layout - removes default payment method and collapse handling in checkout - commented in dashboard payment settings. TBD. - resolves #1408
- Loading branch information
aaronjudd
committed
Nov 27, 2016
1 parent
1588b3e
commit 73561ed
Showing
19 changed files
with
111 additions
and
179 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
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
3 changes: 1 addition & 2 deletions
3
imports/plugins/core/payments/client/checkout/payment/index.js
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,3 +1,2 @@ | ||
import "./methods/cards.html"; | ||
import "./methods/cards.js"; | ||
import "./methods.html"; | ||
import "./payment.html"; |
18 changes: 18 additions & 0 deletions
18
imports/plugins/core/payments/client/checkout/payment/methods.html
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<template name="corePaymentMethods"> | ||
|
||
{{#each reactionApps provides='paymentMethod' enabled=true}} | ||
<div class="core-payment-method-form"> | ||
{{> Template.dynamic template=template}} | ||
</div> | ||
{{else}} | ||
|
||
<div class="alert alert-danger"> | ||
<span data-i18n="checkoutPayment.noPaymentMethods">No payment methods are configured.</span> | ||
<a href="/dashboard"> | ||
<span data-i18n="checkoutPayment.configureNow">Configure now.</span> | ||
</a> | ||
</div> | ||
|
||
{{/each}} | ||
|
||
</template> |
34 changes: 0 additions & 34 deletions
34
imports/plugins/core/payments/client/checkout/payment/methods/cards.html
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
imports/plugins/core/payments/client/checkout/payment/methods/cards.js
This file was deleted.
Oops, something went wrong.
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
4 changes: 2 additions & 2 deletions
4
imports/plugins/included/payments-authnet/client/checkout/authnet.html
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
4 changes: 2 additions & 2 deletions
4
imports/plugins/included/payments-braintree/client/checkout/braintree.html
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
4 changes: 2 additions & 2 deletions
4
imports/plugins/included/payments-example/client/checkout/example.html
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
34 changes: 19 additions & 15 deletions
34
...ts/plugins/included/payments-paypal/client/templates/checkout/express/checkoutButton.html
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,19 +1,23 @@ | ||
<template name="paypalCheckoutButton"> | ||
<div class="paypal-express"> | ||
<div class="paypal-checkout-button-container {{#unless isConfigured}}hidden{{/unless}}"> | ||
<button class="btn btn-block btn-info js-paypal-express-checkout"><i class="fa fa-paypal"></i> | ||
<span data-i18n="checkout.paymentMethod.expressButtonLabel">Checkout with PayPal Express</span> | ||
</button> | ||
</div> | ||
|
||
<div class="paypal-checkout-button-container {{#unless isConfigured}}hidden{{/unless}}"> | ||
<button class="btn btn-warning btn-block js-paypal-express-checkout"><i class="fa fa-lock"></i> | ||
<span data-i18n="checkout.paymentMethod.expressButtonLabel">Checkout with PayPal Express</span> | ||
</button> | ||
<div class="paypal-checkout-alert-message {{#if isConfigured}}hidden{{/if}}"> | ||
{{#if hasAdminAccess}} | ||
<div class="alert alert-danger"> | ||
<i class="fa fa-paypal"></i> | ||
<span data-i18n="checkout.paymentMethod.expressNotConfigured">Paypal Express misconfigured.</span> | ||
</div> | ||
{{else}} | ||
<div class="alert alert-warning"> | ||
<i class="fa fa-paypal"></i> | ||
<span data-i18n="checkout.paymentMethod.expressNotAvailable">Paypal Express not available</span> | ||
</div> | ||
{{/if}} | ||
</div> | ||
</div> | ||
|
||
<div class="paypal-checkout-alert-message {{#if isConfigured}}hidden{{/if}}"> | ||
{{#if hasAdminAccess}} | ||
<i class="fa fa-paypal"></i> | ||
<span data-i18n="checkout.paymentMethod.expressNotConfigured">Paypal Express Not Properly Configured.</span> | ||
{{else}} | ||
<i class="fa fa-paypal"></i> | ||
<span data-i18n="checkout.paymentMethod.expressNotAvailable">Paypal Express Not Available</span> | ||
{{/if}} | ||
</div> | ||
|
||
</template> |
Oops, something went wrong.