gitignore
This commit is contained in:
@@ -114,10 +114,11 @@ def run_card_migration_synchronously():
|
|||||||
validationMode="testMode"
|
validationMode="testMode"
|
||||||
)
|
)
|
||||||
controller = createCustomerProfileController(request)
|
controller = createCustomerProfileController(request)
|
||||||
|
controller.setenvironment(constants.PRODUCTION)
|
||||||
controller.execute()
|
controller.execute()
|
||||||
response = controller.getresponse()
|
response = controller.getresponse()
|
||||||
|
|
||||||
if response is not None and hasattr(response, 'messages') and response.messages.resultCode == "Ok":
|
if response.messages.resultCode == "Ok":
|
||||||
profile_id = response.customerProfileId if hasattr(response, 'customerProfileId') else None
|
profile_id = response.customerProfileId if hasattr(response, 'customerProfileId') else None
|
||||||
payment_ids = response.customerPaymentProfileIdList.numericString if hasattr(response, 'customerPaymentProfileIdList') and hasattr(response.customerPaymentProfileIdList, 'numericString') else []
|
payment_ids = response.customerPaymentProfileIdList.numericString if hasattr(response, 'customerPaymentProfileIdList') and hasattr(response.customerPaymentProfileIdList, 'numericString') else []
|
||||||
payment_id = payment_ids[0] if payment_ids else None
|
payment_id = payment_ids[0] if payment_ids else None
|
||||||
@@ -175,9 +176,10 @@ def run_card_migration_synchronously():
|
|||||||
validationMode="testMode"
|
validationMode="testMode"
|
||||||
)
|
)
|
||||||
controller = createCustomerPaymentProfileController(request)
|
controller = createCustomerPaymentProfileController(request)
|
||||||
|
controller.setenvironment(constants.PRODUCTION)
|
||||||
controller.execute()
|
controller.execute()
|
||||||
response = controller.getresponse()
|
response = controller.getresponse()
|
||||||
if response is not None and response.messages.resultCode == "Ok":
|
if response.messages.resultCode == "Ok":
|
||||||
return str(response.customerPaymentProfileId)
|
return str(response.customerPaymentProfileId)
|
||||||
else:
|
else:
|
||||||
# // FIX 2 (Applied here as well): Robust error message parsing
|
# // FIX 2 (Applied here as well): Robust error message parsing
|
||||||
|
|||||||
Reference in New Issue
Block a user