mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Auth.net customer profile
This commit is contained in:
parent
88f1170542
commit
6298ec5552
@ -105,18 +105,18 @@ class AuthorizeCreditCard
|
||||
nlog("unable to delete profile {$customer_profile_id} with payment id {$customer_payment_profile_id}");
|
||||
|
||||
// Delete a customer profile
|
||||
$request = new DeleteCustomerProfileRequest();
|
||||
$request->setMerchantAuthentication($this->authorize->merchant_authentication);
|
||||
$request->setCustomerProfileId( $customer_profile_id );
|
||||
// $request = new DeleteCustomerProfileRequest();
|
||||
// $request->setMerchantAuthentication($this->authorize->merchant_authentication);
|
||||
// $request->setCustomerProfileId( $customer_profile_id );
|
||||
|
||||
$controller = new DeleteCustomerProfileController($request);
|
||||
$response = $controller->executeWithApiResponse($this->authorize->mode());
|
||||
if (($response != null) && ($response->getMessages()->getResultCode() == "Ok") )
|
||||
{
|
||||
nlog("SUCCESS: Delete Customer Payment Profile SUCCESS");
|
||||
}
|
||||
else
|
||||
nlog("unable to delete profile {$customer_profile_id}");
|
||||
// $controller = new DeleteCustomerProfileController($request);
|
||||
// $response = $controller->executeWithApiResponse($this->authorize->mode());
|
||||
// if (($response != null) && ($response->getMessages()->getResultCode() == "Ok") )
|
||||
// {
|
||||
// nlog("SUCCESS: Delete Customer Payment Profile SUCCESS");
|
||||
// }
|
||||
// else
|
||||
// nlog("unable to delete profile {$customer_profile_id}");
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user