Skip to content

Commit

Permalink
Pass use_cc to renew API method too
Browse files Browse the repository at this point in the history
  • Loading branch information
mewejo committed Jan 10, 2017
1 parent 8d1ecdb commit 5b83965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whmcs/modules/registrars/krystal/krystal.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function krystal_RenewDomain($params)

try
{
$API->call("services/domains/" . krystal_getDomainId($API, $params["domainname"]) . "/renew", "POST", [], ["term" => $params["regperiod"]]);
$API->call("services/domains/" . krystal_getDomainId($API, $params["domainname"]) . "/renew", "POST", ["use_cc" => (($params["Use_Credit_Card"] == "on") ? "1" : "")], ["term" => $params["regperiod"]]);
return ["error" => ""];
}
catch(\Krystal\API1\Exceptions\Exception $e)
Expand Down

0 comments on commit 5b83965

Please sign in to comment.