Advertisement
Guest User

Untitled

a guest
Apr 1st, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. if billing_details:
  2. if check_matching_attributes(self.customer, billing_details):
  3. self.customer.__dict__.update(**billing_details)
  4. else:
  5. raise ValueError("The response data don't match customer attributes.")
  6. elif settings.STACK_ENV == 'PROD':
  7. raise GatewayClientError(
  8. detail='Failed to get amazon customer data.'
  9. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement