mirror of
https://github.com/google/nomulus
synced 2026-02-08 22:10:28 +00:00
Add payment page link to Registrar Console
The payment page has also been updated to refuse to show itself if the registrar is not set to credit card billing terms. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=117983313
This commit is contained in:
@@ -189,9 +189,13 @@ registry.registrar.Payment.prototype.bindToDom = function(id) {
|
||||
*/
|
||||
registry.registrar.Payment.prototype.onSetup_ = function(response) {
|
||||
if (response.status != 'SUCCESS') {
|
||||
if (response.message == 'sandbox') { // XXX: Hard-coded from backend.
|
||||
// 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') {
|
||||
goog.soy.renderElement(this.content_,
|
||||
registry.soy.registrar.payment.notUsingCcBilling);
|
||||
} else {
|
||||
registry.forms.displayError(response.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user