From: Christopher Burger Date: Thu, 27 Jul 2017 16:53:59 +0000 (-0400) Subject: RT# 76905 - Created ability to delete payment account thru NG selfservice to test... X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=810e6898f2cc89911edd5a56e90ddb202867c92a RT# 76905 - Created ability to delete payment account thru NG selfservice to test API change in ticket 74537 --- diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index 5c86b7820..99c5f742b 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -152,6 +152,7 @@ sub skin_info { personal.php Profile personal.php Personal Information + payment_accounts.php Payment Accounts password.php Change Password payment.php Payments diff --git a/ng_selfservice/payment_accounts.php b/ng_selfservice/payment_accounts.php new file mode 100644 index 000000000..e70142a0a --- /dev/null +++ b/ng_selfservice/payment_accounts.php @@ -0,0 +1,78 @@ + + +

My Payment Accounts

+
+ +delete_payby( array( + 'session_id' => $_COOKIE['session_id'], + 'custpaybynum' => $paybynum, + ) ); + } + else { + $error['error'] = 'Bad Payby Number'; + } + } + + if ( isset($error['error']) && $error['error'] ) { + $error = $error['error']; + } + else { + $error = "Account " . $paybynum . " Deleted"; + } + +?> + +

+list_payby( array( + 'session_id' => $_COOKIE['session_id'], + ) ); + + if ( isset($payment_info['error']) && $payment_info['error'] ) { + $error = $payment_info['error']; + header('Location:index.php?error='. urlencode($error)); + die(); + } + + extract($payment_info); +?> + + + + + + + + + + + + + + + + + + + + +
 TypeAccount TypeAccount MaskBank Name
delete
+ + +