mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 08:57:12 +02:00
Turn on braintree in sandbox.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119890386
This commit is contained in:
parent
4112bca925
commit
2fc636632b
3 changed files with 1 additions and 30 deletions
|
@ -189,11 +189,7 @@ registry.registrar.Payment.prototype.bindToDom = function(id) {
|
|||
*/
|
||||
registry.registrar.Payment.prototype.onSetup_ = function(response) {
|
||||
if (response.status != 'SUCCESS') {
|
||||
// Check for hard-coded error message codes from backend.
|
||||
if (response.message == 'sandbox') {
|
||||
goog.soy.renderElement(this.content_,
|
||||
registry.soy.registrar.payment.sandbox);
|
||||
} else if (response.message == 'not-using-cc-billing') {
|
||||
if (response.message == 'not-using-cc-billing') {
|
||||
goog.soy.renderElement(this.content_,
|
||||
registry.soy.registrar.payment.notUsingCcBilling);
|
||||
} else {
|
||||
|
|
|
@ -115,17 +115,6 @@
|
|||
{/template}
|
||||
|
||||
|
||||
/** Page used to disable page in sandbox environment. */
|
||||
{template .sandbox}
|
||||
<div class="{css reg-payment}">
|
||||
<h1>Payment Page Disabled</h1>
|
||||
<p>
|
||||
The payment page is not available in the OT&E environment. Please
|
||||
login to the production Registrar Console.
|
||||
</div>
|
||||
{/template}
|
||||
|
||||
|
||||
/** Page indicating customer is not on credit card billing terms. */
|
||||
{template .notUsingCcBilling}
|
||||
<div class="{css reg-payment}">
|
||||
|
|
|
@ -53,20 +53,6 @@ function tearDown() {
|
|||
}
|
||||
|
||||
|
||||
function testSandbox_showsDisabled() {
|
||||
registry.testing.assertReqMockRsp(
|
||||
'?',
|
||||
'/registrar-payment-setup',
|
||||
{},
|
||||
{
|
||||
status: 'ERROR',
|
||||
message: 'sandbox'
|
||||
});
|
||||
assertContains('Payment Page Disabled',
|
||||
goog.dom.getTextContent($$('reg-payment')));
|
||||
}
|
||||
|
||||
|
||||
function testRenderForm() {
|
||||
registry.testing.assertReqMockRsp(
|
||||
'?',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue