Remove email dependency for user
This commit is contained in:
parent
22ac971db8
commit
54eac5677e
1 changed files with 2 additions and 4 deletions
|
@ -43,17 +43,15 @@ def list_vms(name, realm, seed):
|
||||||
@click.option("--expiry-year", required=True, help="YY", type=str)
|
@click.option("--expiry-year", required=True, help="YY", type=str)
|
||||||
@click.option("--card-holder-name", required=True,
|
@click.option("--card-holder-name", required=True,
|
||||||
help="The name as printed on the card", type=str)
|
help="The name as printed on the card", type=str)
|
||||||
@click.option("--email", required=True, help="Email address", type=str)
|
|
||||||
def register_payment(name, realm, seed, number, cvc, expiry_year, expiry_month,
|
def register_payment(name, realm, seed, number, cvc, expiry_year, expiry_month,
|
||||||
card_holder_name, email, cc):
|
card_holder_name, cc):
|
||||||
data = {
|
data = {
|
||||||
**OTPCredentials(name, realm, seed).get_json(),
|
**OTPCredentials(name, realm, seed).get_json(),
|
||||||
"card_number": number,
|
"card_number": number,
|
||||||
"cvc": cvc,
|
"cvc": cvc,
|
||||||
"expiry_year": expiry_year,
|
"expiry_year": expiry_year,
|
||||||
"expiry_month": expiry_month,
|
"expiry_month": expiry_month,
|
||||||
"card_holder_name": card_holder_name,
|
"card_holder_name": card_holder_name
|
||||||
"email": email
|
|
||||||
}
|
}
|
||||||
r = requests.post(
|
r = requests.post(
|
||||||
"{}/user/register_payment".format(config('UCLOUD_PAY_SERVER')),
|
"{}/user/register_payment".format(config('UCLOUD_PAY_SERVER')),
|
||||||
|
|
Loading…
Reference in a new issue