File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,11 @@ public function createPaymentProfile(CIMCreateCardResponse $createCardResponse)
203203 $ getProfileResponse = $ this ->makeGetProfileRequest ($ parameters );
204204
205205 // Check if there is a pre-existing profile for the given card numbers.
206- $ otherErrorCodes = array ('E00039 ' , 'E00042 ' ); // For these codes we should check for duplicate payment profiles
206+ // For these codes we should check for duplicate payment profiles
207+ $ otherErrorCodes = array (
208+ CIMGetProfileResponse::ERROR_DUPLICATE_PROFILE ,
209+ CIMGetProfileResponse::ERROR_MAX_PAYMENT_PROFILE_LIMIT_REACHED
210+ );
207211 if (!$ createPaymentProfileResponse ->isSuccessful () &&
208212 in_array ($ createPaymentProfileResponse ->getReasonCode (), $ otherErrorCodes )
209213 ) {
Original file line number Diff line number Diff line change 77 */
88class CIMGetProfileResponse extends CIMCreatePaymentProfileResponse
99{
10+ const ERROR_DUPLICATE_PROFILE = 'E00039 ' ;
11+ const ERROR_MAX_PAYMENT_PROFILE_LIMIT_REACHED = 'E00042 ' ;
12+
1013 protected $ xmlRootElement = 'getCustomerProfileResponse ' ;
1114
1215 /**
You can’t perform that action at this time.
0 commit comments