def get_credit_provider_info(request, provider_id):
 credit_provider = CreditProvider.get_credit_provider(provider_id=provider_id)
 credit_provider_data = {}
 if credit_provider:
  credit_provider_data = {'provider_id': credit_provider.provider_id, 'display_name': credit_provider.display_name, 'provider_url': credit_provider.provider_url, 'provider_status_url': credit_provider.provider_status_url, 'provider_description': credit_provider.provider_description, 'enable_integration': credit_provider.enable_integration, 'fulfillment_instructions': credit_provider.fulfillment_instructions, 'thumbnail_url': credit_provider.thumbnail_url}
 return JsonResponse(credit_provider_data)

def get_credit_provider_info ( request , provider_id ) : credit_provider = CreditProvider . get_credit_provider ( provider_id = provider_id ) credit_provider_data = { } if credit_provider : credit_provider_data = { 'provider_id' : credit_provider . provider_id , 'display_name' : credit_provider . display_name , 'provider_url' : credit_provider . provider_url , 'provider_status_url' : credit_provider . provider_status_url , 'provider_description' : credit_provider . provider_description , 'enable_integration' : credit_provider . enable_integration , 'fulfillment_instructions' : credit_provider . fulfillment_instructions , 'thumbnail_url' : credit_provider . thumbnail_url } return JsonResponse ( credit_provider_data )
retrieve the creditprovider model data against provided credit provider .