[update]: RACChecks
This commit was merged in pull request #10.
This commit is contained in:
@@ -48,17 +48,17 @@ class EligibilityCheckService(BaseService):
|
||||
"message": "Invalid Customer or Account"
|
||||
}), 400
|
||||
|
||||
db.session.flush()
|
||||
|
||||
# Call RACCheck
|
||||
response = SimbrellaIntegration.rac_check(
|
||||
customer_id = customer_id,
|
||||
account_id = account_id,
|
||||
transaction_id = transaction.id,
|
||||
)
|
||||
|
||||
logger.error(f"This is Response Returned ****** : {str(response)}")
|
||||
|
||||
# this chck for error is not valid
|
||||
if response.get("status") != 200:
|
||||
if response.status_code != 200:
|
||||
return jsonify({"message": "RACCheck failed"}), 400
|
||||
|
||||
offers = [offer.to_dict() for offer in Offer.get_all_offers()]
|
||||
|
||||
Reference in New Issue
Block a user