1
0
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:
David Bomba 2022-02-14 12:40:34 +11:00
parent 88f1170542
commit 6298ec5552

View File

@ -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}");
}