File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -228,12 +228,13 @@ def update_customer_payment_profile(self):
228
228
modl = imp .load_source ('modulename' , 'CustomerProfiles/create-customer-payment-profile.py' )
229
229
response = modl .create_customer_payment_profile (customerProfileId )
230
230
231
- modl = imp .load_source ('modulename' , 'CustomerProfiles/update-customer-payment-profile.py' )
232
- response = modl .update_customer_payment_profile (customerProfileId , str (response .customerPaymentProfileId ))
231
+ if hasattr (response , 'customerProfileId' ) == True :
232
+ modl = imp .load_source ('modulename' , 'CustomerProfiles/update-customer-payment-profile.py' )
233
+ response = modl .update_customer_payment_profile (customerProfileId , str (response .customerPaymentProfileId ))
233
234
234
- #delete newly create customer profile
235
- modl = imp .load_source ('modulename' , 'CustomerProfiles/delete-customer-profile.py' )
236
- modl .delete_customer_profile (customerProfileId )
235
+ #delete newly create customer profile
236
+ modl = imp .load_source ('modulename' , 'CustomerProfiles/delete-customer-profile.py' )
237
+ modl .delete_customer_profile (customerProfileId )
237
238
238
239
return response
239
240
You can’t perform that action at this time.
0 commit comments