1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 22:22:32 +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}"); nlog("unable to delete profile {$customer_profile_id} with payment id {$customer_payment_profile_id}");
// Delete a customer profile // Delete a customer profile
$request = new DeleteCustomerProfileRequest(); // $request = new DeleteCustomerProfileRequest();
$request->setMerchantAuthentication($this->authorize->merchant_authentication); // $request->setMerchantAuthentication($this->authorize->merchant_authentication);
$request->setCustomerProfileId( $customer_profile_id ); // $request->setCustomerProfileId( $customer_profile_id );
$controller = new DeleteCustomerProfileController($request); // $controller = new DeleteCustomerProfileController($request);
$response = $controller->executeWithApiResponse($this->authorize->mode()); // $response = $controller->executeWithApiResponse($this->authorize->mode());
if (($response != null) && ($response->getMessages()->getResultCode() == "Ok") ) // if (($response != null) && ($response->getMessages()->getResultCode() == "Ok") )
{ // {
nlog("SUCCESS: Delete Customer Payment Profile SUCCESS"); // nlog("SUCCESS: Delete Customer Payment Profile SUCCESS");
} // }
else // else
nlog("unable to delete profile {$customer_profile_id}"); // nlog("unable to delete profile {$customer_profile_id}");
} }